<% songs.each do |s| %>
<% end %>
If i will remove the h…the output is still the same… thank you for
your replies
<% songs.each do |s| %>
If i will remove the h…the output is still the same… thank you for
your replies
<% songs.each do |s| %>
<%=h s.name %> <% end %>If i will remove the h…the output is still the same… thank you for
your replies
h is an alias for sanitize_html.
Try this…
<%= “bold?” %>
vs
<%= h “bold?” %>
That said… the behavior is different in Rails 3… which sanitizes by
default. So, in Rails three, try this…
<%= “bold?” %>
vs.
<%= raw “bold?” %>
-philip
Ahh…Now I understand better. Thank you Sir.
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