Ruby on Rails Sunday, January 30, 2011

...
content_tag("div", "#{label} #{form_field}".html_safe!, :class =>
"form_row")
...

gives me the error: You can't call html_safe! on a String.

Obviously I'm doing this wrong... where should I place html_safe! ?

Thanks,
- Jeff Miller

--
Posted via http://www.ruby-forum.com/.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment