# Link question

**URL:** <https://www.ruby-forum.com/t/link-question/126312>\
**Category:** Rails\
**Created:** [January 17, 2008, 11:12am UTC](https://www.ruby-forum.com/t/link-question/126312 "2008-01-17T11:12:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![extempore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/6bbea6/32.png) [@extempore](https://www.ruby-forum.com/u/extempore)\
**Post date:** [January 17, 2008, 11:12am UTC](https://www.ruby-forum.com/t/link-question/126312/1 "2008-01-17T11:12:29Z")

</div>

Dears  
I have this link which is working correctly but would like to know if  
it’s possible to create a second link within the same request.

this is the original link \<%= link\_to s.achternaam, {:action =\> ‘show’,  
:id =\> s.id} -%\> and I would like to have something like \<%=  
link\_to s.naam, s.achternaam, {:action =\> ‘show’, :id =\> s.id} -%\>  
but don’t now how to adapt the action part for this  
thanks for your help  
kind regards  
Paul

---

<div class="post-metadata">

**Author:** ![extempore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/6bbea6/32.png) [@extempore](https://www.ruby-forum.com/u/extempore)\
**Post date:** [January 17, 2008, 11:18am UTC](https://www.ruby-forum.com/t/link-question/126312/2 "2008-01-17T11:18:37Z")

</div>

ok  
stupid question found the solution  
\<%= link\_to s.naam, {:action =\> ‘show’,

> :id =\> s.id} -%\> \<%= link\_to s.achternaam, {:action =\> ‘show’,  
> :id =\> s.id} -%\>

Paul P. wrote:

> Dears  
> I have this link which is working correctly but would like to know if  
> it’s possible to create a second link within the same request.
> 
> this is the original link \<%= link\_to s.achternaam, {:action =\> ‘show’,  
> :id =\> s.id} -%\> and I would like to have something like \<%=  
> link\_to s.naam, s.achternaam, {:action =\> ‘show’, :id =\> s.id} -%\>  
> but don’t now how to adapt the action part for this  
> thanks for your help  
> kind regards  
> Paul
