I have a partial that is shared by many controllers, and this partial
has a link that needs to do different things based on which controller
So, the partial looks like this:
What I’d like to do is change the link_to to be dynamic, and allow the
controller to set values to pass to the partial. I can see this working
in two ways, A: leave the link_to call there, but replace the paramters
with variables that the controller populate, or B: allow the controllers
to specify what appears in the fourth
What is the idiomatic way of doing this? Is A my only option, or can you
think of a way to do B?
Thanks in advance, as always!