Skip to content

Instantly share code, notes, and snippets.

@Keloran
Created June 4, 2014 08:22
Show Gist options
  • Save Keloran/758a827e5d7713cbad13 to your computer and use it in GitHub Desktop.
Save Keloran/758a827e5d7713cbad13 to your computer and use it in GitHub Desktop.
Carprk::Application.routes.draw do
root :to => "home#index"
devise_for :users, :controllers => {:registrations => "registrations"}
resources :users
# Get Routes
get '/privacy' => 'privacy#index'
get '/careers' => 'careers#index'
get '/faq' => 'faq#index'
get '/terms' => 'terms#index'
get '/contact' => 'contact#index'
get '/carparks' => 'carparks#index'
get '/deals' => 'deals#index'
get '/admin' => 'admin#index'
get '/book' => 'home#index'
get '/about' => 'about#index'
get '/help' => 'help#index'
get '/newsletter' => 'contact#newsletter'
# Post Routes
post '/' => 'home#getCarParks'
post '/book' => 'book#chooseCarPark'
post "/details" => "book#details"
post "/finish" => "book#finish"
# Redirect unknown
get '*path' => 'home#index'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment