1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# ActionController::Routing::Routes.draw do |map|
TestAppBe::Application.routes.draw do
  # map.resources :events, :collection => {:export => :get}
  # map.resources :events do
  #  collections do
  #    get :export
  #  end
  # end 
  resources :events do
    collection do
      get 'export'
    end
  end

  # map.connect ':controller/:action/:id'
  # map.connect ':controller/:action/:id.:format'
  match ':controller(/:action(/:id(.:format)))'

  #ActionController::Routing::Translator.i18n

  # If you prefer to store the routes translation on a separate file:
  # ActionController::Routing::Translator.translate_from_file 'locales', 'i18n-routes.yml'
end