# Inline Links

**URL:** <https://www.ruby-forum.com/t/inline-links/73481>\
**Category:** Rails\
**Created:** [October 24, 2006, 8:59pm UTC](https://www.ruby-forum.com/t/inline-links/73481 "2006-10-24T20:59:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/59ef9b/32.png) [@johnk](https://www.ruby-forum.com/u/johnk)\
**Post date:** [October 24, 2006, 8:59pm UTC](https://www.ruby-forum.com/t/inline-links/73481/1 "2006-10-24T20:59:23Z")

</div>

What is the RoR way of creating inline links i.e. like in FAQs.

ex)  
[skip to main content](#skip_to_main_content)

How would someone do it the RoR way for both creating the link and the  
place where the link goes to?

Thanks for your help :-).

–  
John K.  
removed\_email\_address@domain.invalid

[http://www.kopanas.com](http://www.kopanas.com)

> **[Canadian University Software Engineering Conference - CUSEC](http://cusec.net/)**
>
> Canadian University Software Engineering Conference is a yearly conference created by students for students.

[http://www.soen.info](http://www.soen.info)

---

<div class="post-metadata">

**Author:** ![johnk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/59ef9b/32.png) [@johnk](https://www.ruby-forum.com/u/johnk)\
**Post date:** [October 25, 2006, 2:05pm UTC](https://www.ruby-forum.com/t/inline-links/73481/2 "2006-10-25T14:05:14Z")

</div>

Hi John,

2006/10/24, John K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> What is the RoR way of creating inline links i.e. like in FAQs.
> 
> [skip to main content](#skip_to_main_content)

\<%= link\_to ‘Kommentare’, :action =\> ‘show’, :id =\> code,  
:anchor =\> ‘comment-form’ %\>

Beate 🙂
