Skip to content

Instantly share code, notes, and snippets.

@freakflames29
Created March 22, 2021 16:58
Show Gist options
  • Save freakflames29/c04cc878191db740bcdbe286bd88f842 to your computer and use it in GitHub Desktop.
Save freakflames29/c04cc878191db740bcdbe286bd88f842 to your computer and use it in GitHub Desktop.
Main routes for user
Rails.application.routes.draw do
# get 'deadpool/home'
# get 'sourav',to: 'deadpool#about'
# get 'deadpool/download'
root 'mains#index'
# registrations routes
get 'signup', to:'registrations#new'
post 'signup', to:'registrations#create'
# logout routes
delete 'logout', to:'sessions#destroy'
#login routes
get 'login',to:'sessions#new'
post 'login',to:'sessions#create'
#edit password
get 'password', to:'passwords#edit',as: :edit_password # for showing password edit field
patch 'password', to:'passwords#update' # for updating the password
#password reset urls
get 'password/reset', to:'password_resets#new'
post 'password/reset', to:'password_resets#create'
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment