Help!


#1

who i show in .rhtml my text " Hellow! " bold ?

//Controller

@message = " Hellow! "


//view

<%= @message %>

result:
Hellow!

i would like
Hellow!


Ítalo Matos


#2

Next time choose a better subject then “help!”. It’s not describtive
about your problem. Most people won’t read it.

//Controller

@message = “Hellow!”


//view

<%= “
#{@message}” %>


#3

it forgives ,

the message is dinamic.
the message comes of the data base with tags.

2007/2/1, Thorsten L removed_email_address@domain.invalid:

@message = " Hellow! "
i would like
Hellow!


Ítalo Matos


Ítalo Matos


#4

Yes…

the problem is interpret html tag


etc

2007/2/1, Phlip removed_email_address@domain.invalid:

Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!


Ítalo Matos


#5

Italo M. wrote:

the problem is interpret html tag


etc

Please write complete posts with more details.


Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!


#6

Italo M. wrote:

the message is dinamic.
the message comes of the data base with tags.

Try these two experiments in your rhtml:

<%= ’ yo ’ %>

<%=h ’ yo ’ %>

The first should be bold, and the second should show etc in
your browser.

The h escapes < to <. Without it, you should get raw HTML.

Now check your database - does it reeeally have < > in it? or < >?


Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!