1
0
Fork 0
mirror of https://github.com/kbparagua/paloma synced 2023-03-27 23:21:17 -04:00
paloma/spec/test_app/config/routes.rb
2013-02-25 23:49:28 +08:00

33 lines
756 B
Ruby

TestApp::Application.routes.draw do
resource :foo, :controller => 'Foo' do
collection do
get :basic_action
get :callback_from_another_action
get :callback_from_another_controller
get :callback_from_namespaced_controller
get :skip_callback
end
end
resource :bar, :controller => 'bar' do
collection do
get :basic_action
get :different_params
get :another_basic_action
get :yet_another_basic_action
end
end
namespace :sample_namespace do
resource :baz, :controller => 'baz' do
collection do
get :basic_action
get :another_basic_action
get :yet_another_basic_action
get :callback_from_another_action
end
end
end
end