--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/_M1lERzVv-oJ.
For more options, visit https://groups.google.com/groups/opt_out.
"Attitude is a little thing that makes a big difference"
1) Create your custom controller, for example a Admins::SessionsController:
class Users::SessionsController < Devise::SessionsController end
2) Tell the router to use this controller:
devise_for :users, :controllers => { :sessions => "users/sessions" }
3) we changed the controller, it won't use the "devise/sessions" views, so remember to copy "devise/sessions" to "user/sessions".
Any queries follow the topic
uninitialized constant Users
Try running rake routes
for more information on available routes.
Please advice...
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.