Closed MrDys closed 12 years ago
Original reporter: cbeer
cbeer: Moved Blacklight routes from ./config/routes.rb and added Blacklight.add_routes method for local applications to call from the application config/routes.rb.
https://github.com/projectblacklight/blacklight/commit/53b3e4885b277d3afdfbba2630aa007fb3683b3b
cbeer: With the last patch, this ticket doesn't need to be a 3.0 blocker. I've created CODEBASE-332 to track the resourceful routing aspect of this ticket.
CODEBASE-329: One not uncommon use of the Blacklight plugin is to change the URL path from /catalog to something else within a local application. In Blacklight 2.x, this was possible by choosing not to load the Blacklight routes. In the Rails 3.x world, the engines routes are automatically loaded and generally do unintuitive things when overriden within a local application.
One approach to addressing this is to provide a method in the Blacklight gem to load routes (https://github.com/plataformatec/devise/blob/master/lib/devise/rails/routes.rb is probably an extreme example).