Last active
February 17, 2020 04:25
-
-
Save mkezfarias/5b920d9987a765fe2dee172e9f100bfd to your computer and use it in GitHub Desktop.
tech-me-routes.rb
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