Guest User

Untitled

a guest
Sep 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. match 'users' => 'devise/users#index'
  2. devise_for :users, :path_names => { :sign_in => 'login', :sign_out => 'logout' }, :controllers => { :registrations => "registrations", :omniauth_callbacks => "authentication_providers" }
  3. devise_scope :user do
  4. get "/login" => "devise/sessions#new"
  5. post "/login" => "devise/sessions#create"
  6. match 'logout' => 'devise/sessions#destroy', :as => :destroy_user_session, :via => :get
  7. match '/users/billing' => 'registrations#billing', :as => :billing_registration
  8. match '/registrations/edit' => 'registrations#edit', :as => :registrations_billing_edit
  9. match 'sign_up' => 'registrations#new', :as => :new_user_registration, :via => :get
  10. match 'sign_up' => 'registrations#create', :as => :user_registration, :via => [:post, :put]
  11. match '/user_update' => 'registrations#update', :as => :registrations_update, :via => :put
  12. match '/authentication_providers/complete_registration/:id' => 'authentication_providers#register', :as => :register_authentication_provider, :via => :put
  13. match '/auth/failure' => 'authentication_providers#failure'
  14. end
Add Comment
Please, Sign In to add comment