Tooltip with css_tt

Using “css_tt” gem, I was able to create a tooltip.
However, my text (of the tooltip) has many “
”.

Here’s my view:

<% @tooltip = "Whatever
This is just an example
I need many break lines
Got it?" %> <%= css_tt("Tooltip:", @tooltip, :title => "My title") %>

In my computer, the tooltip shows a cute text, WITH the break lines.
However, when I try to run the project in ANOTHER computer, instead of
break lines, i get the “
” that I’ve wrote…

Someone knows what can it be?

On 10/5/2010 9:31 AM, Bla … wrote:

Got it?" %>
<%= css_tt(“Tooltip:”, @tooltip, :title => “My title”) %>

In my computer, the tooltip shows a cute text, WITH the break lines.
However, when I try to run the project in ANOTHER computer, instead of
break lines, i get the “
” that I’ve wrote…

Someone knows what can it be?

I’m not a CSS/HTML expert, but are you testing with the same version of
the same browser on both computers? If not, this may be explained by
incompatible differences between the browsers in question.

I wish I could posit a solution. Have you tried using \n instead of

?

-Jeremy

Thanks for the answer.

I’ve tried to use “\n” instead of “
”. But it doesn’t work in any
computer, even mine.

There’s some way to I force the browser to compose the way I want to?

On 10/6/2010 6:31 AM, Bla … wrote:

Thanks for the answer.

I’ve tried to use “\n” instead of “
”. But it doesn’t work in any
computer, even mine.

There’s some way to I force the browser to compose the way I want to?

This doesn’t appear to be a general Ruby problem, so this is probably
not the best forum in which to pose this question. Have you tried
contacting the author of the css_tt gem? Since css_tt advertises itself
for use with Rails, you might also try asking in that list:

http://www.ruby-forum.com/forum/3

Maybe someone there will have some experience with this gem.

-Jeremy

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs