Tuesday, 20 August 2013

Rails - Link to Div on current page

Rails - Link to Div on current page

How can I link to a div on the current page.
For example, I have
<%= link_to "Comments", :anchor => "comments_div" %>
which links to www.url.com/#comments_div.
How can I link to a div from the current page, including params in the
url, eg: www.url.com/r?utf8=&#10003;&page_id=1232&lod_in=f#comments_div

No comments:

Post a Comment