Is a decorator, like Draper, a good place to store the controller and routes associated with a given model?
I would like to be able to pass one or several model objects to a generic view, and have the view automatically generate links to the actions associated with the objects. Like this:
link_to object.public_send(attribute),
{ :controller => object.controller_path,
:action => :show,
:id => object.id }
Thank you for any suggestions of what would be a common practice.
I have also posted this question on SO:
http://stackoverflow.com/questions/12713784.