Skip to content

Instantly share code, notes, and snippets.

@ryanb
Created February 24, 2010 19:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ryanb/313776 to your computer and use it in GitHub Desktop.
Save ryanb/313776 to your computer and use it in GitHub Desktop.
get "/about" => 'info#about', :as => 'about'
get "/privacy" => 'info#privacy', :as => 'privacy'
get "/license" => 'info#license', :as => 'license'
get "/mission" => 'info#mission', :as => 'mission'
get "/contact" => 'info#contact', :as => 'contact'
%w[about privacy license mission contact].each do |action|
get "/#{action}" => 'info#' + action, :as => action
end
InfoController.action_methods.each do |action|
get "/#{action}" => 'info#' + action, :as => action
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment