# Link\_to rel tag

**URL:** <https://www.ruby-forum.com/t/link-to-rel-tag/70840>\
**Category:** Rails\
**Created:** [October 3, 2006, 12:30pm UTC](https://www.ruby-forum.com/t/link-to-rel-tag/70840 "2006-10-03T12:30:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnybutler7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Post date:** [October 3, 2006, 12:30pm UTC](https://www.ruby-forum.com/t/link-to-rel-tag/70840/1 "2006-10-03T12:30:54Z")

</div>

Hi,

throughout my site i use a bit of javascript to display a ballon tool  
tip over each hyperlink code below works fine:

Clicke here for link.

This is the tool tip information

Is it possible to add the rel tag to a rubyonrails link\_to tag? The  
reason im asking this is i dont want to have to change the address in  
the hyper link everytime i move from development to testing to  
production and even if the site changed its name.

So how would i associated the rel=“balloon2” to the below? Is it  
possible?

\<%= link\_to ‘Clike here’, :action =\> ‘index’, :controller =\> ‘main’ %\>

JB

---

<div class="post-metadata">

**Author:** ![johnnybutler7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Post date:** [October 3, 2006, 1:01pm UTC](https://www.ruby-forum.com/t/link-to-rel-tag/70840/2 "2006-10-03T13:01:03Z")

</div>

On 3 October 2006 14:30, John B. wrote:

> Is it possible to add the rel tag to a rubyonrails link\_to tag? The  
> reason im asking this is i dont want to have to change the address in  
> the hyper link everytime i move from development to testing to  
> production and even if the site changed its name.
> 
> So how would i associated the rel=“balloon2” to the below? Is it  
> possible?
> 
> \<%= link\_to ‘Clike here’, :action =\> ‘index’, :controller =\> ‘main’ %\>  
> Try this one:  
> \<%= link\_to ‘Click here’, { :action =\> ‘index’, :controller =\> ‘main’ },  
> :rel  
> =\> ‘balloon2’ %\>

---

<div class="post-metadata">

**Author:** ![johnnybutler7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Post date:** [October 3, 2006, 1:59pm UTC](https://www.ruby-forum.com/t/link-to-rel-tag/70840/3 "2006-10-03T13:59:36Z")

</div>

Maxim K. wrote:

> On 3 October 2006 14:30, John B. wrote:
> 
> > Is it possible to add the rel tag to a rubyonrails link\_to tag? The  
> > reason im asking this is i dont want to have to change the address in  
> > the hyper link everytime i move from development to testing to  
> > production and even if the site changed its name.
> > 
> > So how would i associated the rel=“balloon2” to the below? Is it  
> > possible?
> > 
> > \<%= link\_to ‘Clike here’, :action =\> ‘index’, :controller =\> ‘main’ %\>  
> > Try this one:  
> > \<%= link\_to ‘Click here’, { :action =\> ‘index’, :controller =\> ‘main’ },  
> > :rel  
> > =\> ‘balloon2’ %\>

Thanks.
