Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- as :user do
- # Sessions
- get '/login' => 'users/sessions#new', as: :new_user_session
- # Registration
- controller 'users/registrations' do
- get '/signup', action: :new, as: :new_user_registration
- end
- end
- # can also do sth like this:
- match '/auth/:provider/callback', to: 'sessions#create', via: [:get, :post]
- ## the ways we write in #sessions and #registrations are inter-changeable.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement