Skip to content

Instantly share code, notes, and snippets.

@thebucknerlife
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thebucknerlife/dd750eafd6fe65fb1977 to your computer and use it in GitHub Desktop.
Save thebucknerlife/dd750eafd6fe65fb1977 to your computer and use it in GitHub Desktop.
# 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