MrDys / blacklight

Blacklight Plugin
http://projectblacklight.org/
Other
1 stars 1 forks source link

Allow Blacklight 3.x routes to be customized or overriden by local applications #514

Closed MrDys closed 12 years ago

MrDys commented 12 years ago

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).

MrDys commented 12 years ago

Original reporter: cbeer

MrDys commented 12 years ago

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

MrDys commented 12 years ago

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.