Skip to content

Instantly share code, notes, and snippets.

@ruevaughn
Created April 6, 2012 20:52
Show Gist options
  • Save ruevaughn/2322844 to your computer and use it in GitHub Desktop.
Save ruevaughn/2322844 to your computer and use it in GitHub Desktop.
output of rake routes for my rails app
resources :sites, except: [:new, :edit, :index, :show, :update, :destroy, :create] do
member do
get :home
get :about_us
get :faq
get :discounts
get :services
get :contact_us
get :admin
get :posts
end
end
Outputs
home_site GET /sites/:id/home(.:format) {:action=>"home", :controller=>"sites"}
about_us_site GET /sites/:id/about_us(.:format) {:action=>"about_us", :controller=>"sites"}
faq_site GET /sites/:id/faq(.:format) {:action=>"faq", :controller=>"sites"}
discounts_site GET /sites/:id/discounts(.:format) {:action=>"discounts", :controller=>"sites"}
services_site GET /sites/:id/services(.:format) {:action=>"services", :controller=>"sites"}
contact_us_site GET /sites/:id/contact_us(.:format) {:action=>"contact_us", :controller=>"sites"}
admin_site GET /sites/:id/admin(.:format) {:action=>"admin", :controller=>"sites"}
posts_site GET /sites/:id/posts(.:format) {:action=>"posts", :controller=>"sites"}
root / {:controller=>"sites", :action=>"home"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment