> <% songs.each do |s| %>
>    <td><%=h s.name %></td>
> <% 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.

http://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html

Try this...

<%= "<b>bold?</b>" %>

vs

<%= h "<b>bold?</b>" %>

That said... the behavior is different in Rails 3... which sanitizes by 
default.  So, in Rails three, try this...

<%= "<b>bold?</b>" %>

vs.

<%= raw "<b>bold?</b>" %>

-philip

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to