2013-10-11 22:22:52 -04:00
|
|
|
TestApp::Application.routes.draw do
|
|
|
|
|
2013-10-12 04:56:45 -04:00
|
|
|
mount JasmineRails::Engine => "/specs" if defined?(JasmineRails)
|
2013-10-11 22:22:52 -04:00
|
|
|
|
|
|
|
root :to => 'main#index'
|
2013-10-12 07:20:23 -04:00
|
|
|
|
2013-10-24 05:33:12 -04:00
|
|
|
resources :main, :controller => 'Main' do
|
|
|
|
member do
|
|
|
|
get :json_response
|
|
|
|
get :js_response
|
|
|
|
get :xml_response
|
|
|
|
get :file_response
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2013-10-12 07:20:23 -04:00
|
|
|
resources :foo, :controller => 'Foo'
|
|
|
|
|
|
|
|
namespace :admin do
|
|
|
|
resources :bar, :controller => 'Bar'
|
|
|
|
end
|
|
|
|
|
2013-10-24 05:33:12 -04:00
|
|
|
|
|
|
|
resources :multiple_names
|
2013-10-11 22:22:52 -04:00
|
|
|
end
|