How to add a hash parameter in link_to. I need to generate a URL something like this..
/p/generate/#sometext
This is how my code looks now.
I recognize this is an old post, but I thought I would contribute my recent discovery:
<%= link_to "New Person", polymorphic_path([:new, person], anchor: "profile") %>
See the API Docs for details.