Skip to content

Instantly share code, notes, and snippets.

@jkamenik
Created December 28, 2011 14:51
Show Gist options
  • Save jkamenik/1528195 to your computer and use it in GitHub Desktop.
Save jkamenik/1528195 to your computer and use it in GitHub Desktop.
class RegistrationsController < Devise::RegistrationsController
layout false
end
devise_for :owners, :controllers => { :registrations => "registrations" }
new_user_session GET /users/sign_in(.:format) {:controller=>"devise/sessions", :action=>"new"}
user_session POST /users/sign_in(.:format) {:controller=>"devise/sessions", :action=>"create"}
destroy_user_session DELETE /users/sign_out(.:format) {:controller=>"devise/sessions", :action=>"destroy"}
user_password POST /users/password(.:format) {:controller=>"devise/passwords", :action=>"create"}
new_user_password GET /users/password/new(.:format) {:controller=>"devise/passwords", :action=>"new"}
edit_user_password GET /users/password/edit(.:format) {:controller=>"devise/passwords", :action=>"edit"}
PUT /users/password(.:format) {:controller=>"devise/passwords", :action=>"update"}
users GET /users(.:format) {:controller=>"users", :action=>"index"}
POST /users(.:format) {:controller=>"users", :action=>"create"}
new_user GET /users/new(.:format) {:controller=>"users", :action=>"new"}
edit_user GET /users/:id/edit(.:format) {:controller=>"users", :action=>"edit"}
user GET /users/:id(.:format) {:controller=>"users", :action=>"show"}
PUT /users/:id(.:format) {:controller=>"users", :action=>"update"}
DELETE /users/:id(.:format) {:controller=>"users", :action=>"destroy"}
root /(.:format) {:controller=>"users", :action=>"index"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment