I think they are called tool tips... I have view code that looks like this... <%= link_to ''I'', :action => ''edit_innoculations'', :id => personnel %> Is there an option (I don''t see it in api) to have tool tips for a link_to ? Craig
You can use the ''title'' tag of the <a> tag (untested, but should work): <%= link_to "Link", {action => ''edit_innoculations'', :id => personnel}, {:title => "Tooltip text goes here"} %> Cheers, -DF On 6/4/06, Craig White <craigwhite@azapple.com> wrote:> I think they are called tool tips... > > I have view code that looks like this... > > <%= link_to ''I'', :action => ''edit_innoculations'', :id => personnel %> > > Is there an option (I don''t see it in api) to have tool tips for a > link_to ? > > Craig > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Yeah - that worked (after changing action to a symbol :action) Thanks Craig On Sun, 2006-06-04 at 11:35 +1000, David Felstead wrote:> You can use the ''title'' tag of the <a> tag (untested, but should work): > > <%= link_to "Link", {action => ''edit_innoculations'', :id => > personnel}, {:title => "Tooltip text goes here"} %> > > Cheers, > > -DF > > On 6/4/06, Craig White <craigwhite@azapple.com> wrote: > > I think they are called tool tips... > > > > I have view code that looks like this... > > > > <%= link_to ''I'', :action => ''edit_innoculations'', :id => personnel %> > > > > Is there an option (I don''t see it in api) to have tool tips for a > > link_to ? > > > > Craig > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Oops, yeah - sorry, typo :) -DF On 6/4/06, Craig White <craigwhite@azapple.com> wrote:> Yeah - that worked (after changing action to a symbol :action) > > Thanks > > Craig > > On Sun, 2006-06-04 at 11:35 +1000, David Felstead wrote: > > You can use the ''title'' tag of the <a> tag (untested, but should work): > > > > <%= link_to "Link", {action => ''edit_innoculations'', :id => > > personnel}, {:title => "Tooltip text goes here"} %> > > > > Cheers, > > > > -DF > > > > On 6/4/06, Craig White <craigwhite@azapple.com> wrote: > > > I think they are called tool tips... > > > > > > I have view code that looks like this... > > > > > > <%= link_to ''I'', :action => ''edit_innoculations'', :id => personnel %> > > > > > > Is there an option (I don''t see it in api) to have tool tips for a > > > link_to ? > > > > > > Craig > > > > > > _______________________________________________ > > > Rails mailing list > > > Rails@lists.rubyonrails.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >