Last active
August 29, 2015 14:22
-
-
Save thebucknerlife/dd750eafd6fe65fb1977 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
# config/routes.rb | |
GifVault::Application.routes.draw do | |
# This route sends requests to our naked url to the *cool* action in the *gif* controller. | |
root to: 'gif#cool' | |
# I've created a gif controller so I have a page I can secure later. | |
# This is optional (as is the root to: above). | |
get '/cool' => 'gif#cool' | |
get '/sweet' => 'gif#sweet' | |
# These routes will be for signup. The first renders a form in the browse, the second will | |
# receive the form and create a user in our database using the data given to us by the user. | |
get '/signup' => 'users#new' | |
post '/users' => 'users#create' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment