On Jan 30, 2011, at 2:05 PM, Jeff Miller wrote:
> ...
> 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
It's just .html_safe (no ! on it)
-Rob
Rob Biedenharn
Rob@AgileConsultingLLC.com http://AgileConsultingLLC.com/
rab@GaslightSoftware.com http://GaslightSoftware.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