There are areas of my application that “want” to use a url structure
Please note that the human readable parameter I need to inject is NOT
related to the being used by the action/controller pair. It’s
identifying a container object whose contains are operated on by the
I currently have this working with routes, however I need to tack on
an extra parameter to all the url generating functions (url_for,
form_start_tag, named_route_url…) to get the mapping to pick up the
custom URL parameter. Having to remember to
append :short_name=>@my_object.short_name (with or without to_param
magic), is getting annoying and the repetition is getting ugly.
Is there anything like ActiveRecord’s with_scope function to “bind”
this extra parameter once and make ActionController smart about
propagating the extra parameter everywhere?