How would I convert this link if I wanted to use the rails <%= link_to %> helper?
Here is my link :
<a id="landing_link" href="#landing"><div id="headerlogo"></div></a>
Another question is that the link is an anchor link. In a link_to from another page, how would I link it to the page (eg. index) and then to the anchor?
You can use a
doblock for link_to:The documentation ; their example:
In your case,
<a id="landing_link" href="#landing"><div id="headerlogo"></div></a>Becomes: