Displaying 2 results from an estimated 2 matches for "destroy_user_session".
2011 Feb 14
0
Overiding routes in rails3
...ot;Sign out" link with typus and
redirect it to devise/sessions#destroy
----------------------
config/routes.rb
----------------------
65 # Override typus TODO this does not work
66 delete "/admin/session(.:format)" => ''devise/sessions#destroy'', :as =>
:destroy_user_session
However I keep getting Abstract::Controller:ActionNotFound exceptions when I
try
restclient delete http://localhost:3000/admin/session
Am I doing this the right way
--
Brad Phelan
http://xtargets.com
--
You received this message because you are subscribed to the Google Groups "Ruby on R...
2011 Jul 14
10
Devise confusing routes
...create a New User, it''s redirecting me to the
Sign In screen. Seems like I didn''t fix the problem completely.
I think Devise is confusing the routes. If I do rake routes, I get
this...
new_user_session GET /users/sign_in(.:format)
user_session POST /users/sign_in(.:format)
destroy_user_session DELETE /users/sign_out(.:format)
new_user GET /users/new(.:format)
edit_user GET /users/:id/edit(.:format)
user GET /users/:id(.:format)
This is routes.rb
devise_for :users, :controllers => { :registrations =>
''users/registrations'' }
resources :companies
resourc...