Created
February 18, 2020 05:52
-
-
Save mkezfarias/3a4914aef4c579e5f265b6a46145ac77 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.routes.draw do | |
# generated by scaffold to take care of all the methods for subjects | |
resources :subjects | |
# sends a get request to the show method in the sessions controller | |
get '/sessions', to: 'sessions#show' | |
# sends a post request to the show method in the sessions controller with a parameter passed from the view | |
post '/sessions', to: 'sessions#show', as: :sessions_show | |
# sends the root to the landig page | |
root 'welcome#index' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment