who i show in .rhtml my text " Hellow! " bold ?
//Controller
…
@message = " Hellow! "
…
//view
…
<%= @message %>
…
result:
Hellow!
i would like
Hellow!
–
Ãtalo Matos
who i show in .rhtml my text " Hellow! " bold ?
//Controller
…
@message = " Hellow! "
…
//view
…
<%= @message %>
…
result:
Hellow!
i would like
Hellow!
–
Ãtalo Matos
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}” %>
it forgives ,
the message is dinamic.
the message comes of the data base with tags.
2007/2/1, Thorsten L [email protected]:
…
@message = “ Hellow! ”
i would like
Hellow!–
Ãtalo Matos
–
Ãtalo Matos
Yes…
the problem is interpret html tag
etc
2007/2/1, Phlip [email protected]:
Phlip
http://c2.com/cgi/wiki?ZeekLand ← NOT a blog!!
–
Ãtalo Matos
Italo M. wrote:
Please write complete posts with more details.
–
Phlip
http://c2.com/cgi/wiki?ZeekLand ← NOT a blog!!
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!!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs