config/routes.rb in calagator-1.0.0.rc2 vs config/routes.rb in calagator-1.0.0.rc3

- old
+ new

@@ -15,11 +15,11 @@ resources :events do collection do post :squash_many_duplicates get :search get :duplicates - get 'tag/:tag', to: :search, as: :tag + get 'tag/:tag', action: :search, as: :tag end member do get :clone end @@ -35,15 +35,23 @@ collection do post :squash_many_duplicates get :map get :duplicates get :autocomplete - get 'tag/:tag', to: :search, as: :tag + get 'tag/:tag', action: :index, as: :tag end end resources :versions, :only => [:edit] - resources :changes, :controller => 'paper_trail_manager/changes' + + # Rails 4.0 prevents referencing controllers outside of the Calagator namespace. + # Work around this by aliasing PaperTrailManager inside Calagator: + Calagator::PaperTrailManager ||= ::PaperTrailManager + resources :changes, controller: 'paper_trail_manager/changes' + + # In Rails 4.1+, we could use a leading slash to the controller path: + # resources :changes, controller: '/paper_trail_manager/changes' + get 'recent_changes' => redirect("/changes") get 'recent_changes.:format' => redirect("/changes.%{format}") get 'css/:name' => 'site#style' get 'css/:name.:format' => 'site#style'