Rails: Dynamic Path Inside Partial
We have a
_user partial that we want to render from two different resources, passing a collection.
The only thing that needs to change in the partial is the path inside the
We can use
self.send("path", object) inside
link_to to achieve this.