# Link\_to internal link

**URL:** <https://www.ruby-forum.com/t/link-to-internal-link/180085>\
**Category:** Rails\
**Created:** [December 11, 2009, 5:51am UTC](https://www.ruby-forum.com/t/link-to-internal-link/180085 "2009-12-11T05:51:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![indigoi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/b3f665/32.png) [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Post date:** [December 11, 2009, 5:51am UTC](https://www.ruby-forum.com/t/link-to-internal-link/180085/1 "2009-12-11T05:51:31Z")

</div>

How do i use a link\_to remote to go to a specific ID on a page normally  
if i wanted to go to the “whatever\_id” on a page i could use \<a  
href="http://www.example.com/mypage#whatever\_id\>Click Here,

but i would like to use my \<%= link\_to “click here” , {:action =\>  
“whatever\_id”, :controller =\> “mypage” %\> helper methods. Does anyone  
know how to do this?
