adding a link_to helper to an id in the same page
When we need to have a hyper link to an id in the same page
given that your html id is #my_id
<%= link_to('Click here to do to my_id', :anchor => 'my_id') %>
<div id="my_id"></div>
Written by sameera207
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#