Skip to content
Create a gist now

Instantly share code, notes, and snippets.

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
InfoController.action_methods.each do |action|
get "/#{action}" => 'info#' + action, :as => action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.