Rails: How do I add an additional parameter to resource-based link_to call?

No, you can't. The only real control you have is the ability to add more params on the link tag. Link_to has a third parameter that would let you add things like a title attribute on the HTML tag, but it's not going to modify the href value.

No, you can't. The only real control you have is the ability to add more params on the link tag. Link_to has a third parameter that would let you add things like a title attribute on the HTML tag, but it's not going to modify the href value.

api.rubyonrails.org/classes/ActionView/H... Go ahead and use the user_path helper. As with most things in Rails, if you want to do the default action, it's going to be simple. You want to do something more complex, so you have to do more work :).

This should work: link_to @user. Name, user_path(@user, :view => "local").

The question was how to do this without explicit call to user_path – tig Jul 11 at 20:44.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions