John Butler | 3 Oct 12:27

link_to rel tag


Hi,

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

<a href="mylink" rel="balloon2">Clicke here for link</a>.

<div id="balloon2" class="balloonstyle" style="width: 350px; 
background-color: lightyellow">
This is the tool tip information
</div>

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

--

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
(Continue reading)

Maxim Kulkin | 3 Oct 12:55

Re: link_to rel tag


On 3 October 2006 14:30, John Butler wrote:
> Hi,
>
> throughout my site i use a bit of javascript to display a ballon tool
> tip over each hyperlink code below works fine:
>
> <a href="mylink" rel="balloon2">Clicke here for link</a>.
>
> <div id="balloon2" class="balloonstyle" style="width: 350px;
> background-color: lightyellow">
> This is the tool tip information
> </div>
>
> 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' %>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
(Continue reading)

John Butler | 3 Oct 13:59

Re: link_to rel tag


Maxim Kulkin wrote:
> On 3 October 2006 14:30, John Butler wrote:
>> </div>
>>
>> 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.

--

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---
(Continue reading)


Gmane