Skip to content

Instantly share code, notes, and snippets.

@bishopandco
Created March 2, 2011 17:09
Show Gist options
  • Save bishopandco/851279 to your computer and use it in GitHub Desktop.
Save bishopandco/851279 to your computer and use it in GitHub Desktop.
cable_to :events do |event|
collection do
get :schedule
end
end
rake routes | grep events
schedule_admin_events GET /admin/events/schedule(.:format) {:action=>"schedule", :controller=>"admin/events"}
admin_events GET /admin/events(.:format) {:action=>"index", :controller=>"admin/events"}
POST /admin/events(.:format) {:action=>"create", :controller=>"admin/events"}
new_admin_event GET /admin/events/new(.:format) {:action=>"new", :controller=>"admin/events"}
edit_admin_event GET /admin/events/:id/edit(.:format) {:action=>"edit", :controller=>"admin/events"}
admin_event GET /admin/events/:id(.:format) {:action=>"show", :controller=>"admin/events"}
PUT /admin/events/:id(.:format) {:action=>"update", :controller=>"admin/events"}
DELETE /admin/events/:id(.:format) {:action=>"destroy", :controller=>"admin/events"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment