# Generate the devise views
rails g devise:views
# Add customize views resource to route
devise_for :users, controllers: { registrations: "users/registrations" }
# Move views to new resource folder
git mv app/views/devise/registrations/ app/views/users/
# Add new custom devise controller
class Users::RegistrationsController < Devise::SessionsController
def new
@user = User.new
end
def create
...
end
end
Wednesday, October 3, 2012
Customizing devise views & controllers
I find myself repeating and googling this far too many times...
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2012
(42)
-
▼
October
(9)
- Added message to Campfire chatroom for Capistrano ...
- Permission denied (publickey) error when trying to...
- Top 3 hosted CI (continuous integration) for Rails...
- Update all associations of a Rails model
- Ember.js gotcha - require handlebar.js
- Scope javascript variable in coffeescript so it's ...
- Rails scaffold only the controller resource
- Customizing devise views & controllers
- Cannot customize default devise views
-
▼
October
(9)
No comments:
Post a Comment