Skip to content

Instantly share code, notes, and snippets.

@ghinch
Created March 21, 2012 18:03
Show Gist options
  • Save ghinch/2150434 to your computer and use it in GitHub Desktop.
Save ghinch/2150434 to your computer and use it in GitHub Desktop.
match('/admin/counter_service/init', :method => :get).to(:controller => :admin, :action => :counters_service_init).name(:counters_service_init)
metadata_thingies.map{|m| m.table_name.to_s}.each do |res|
match("/#{res}/admin", :method => :get).to(:controller => res.to_sym, :action => :admin).name("#{res}_admin") unless res == "view_configurations" # :playlists_admin, :pitches_admin, etc. generated here
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment