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.
link_to "Click",my_path
How to add the hash parameter to my routes method.
Now for the answer
When I posted the question, I didn't got through the url helpers API fully. http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to
I did now. :) .I found the answer.
link_to "Click", my_path(:anchor => "sometext")
M.cypher below almost got it. :)