ActionController::Routing::Routes.draw do |map|
def map.controller_actions(controller, actions)
actions.each do |action|
self.send("#{controller}_#{action}", "#{controller}/#{action}", :controller => controller, :action => action)
end
end
map.resources :products, :categories
map.controller_actions 'about', %w[company privacy license]
end