Robert Walker wrote:
> Michael Satterwhite wrote:
>> Philip Hallstrom wrote:
>> 
>>> def my_helper
>>>   "<h2>my unsafe string</h2>".html_safe!
>>> end
>>> 
>>> See http://weblog.rubyonrails.org/2009/10/12/what-s-new-in-edge-rails
> 
> Or you can use the raw method in the view I think:

THANK YOU! THANK YOU! THANK YOU!
This works.

> If you're not running Rails 3, and did not install the plugin for Rails 
> 2.3.x that does the automatic escaping they you are escaping it 
> somewhere, maybe not realizing it.

I don't know of a plugin for that installed ... and I do the installing 
on this system. The ' h "xxx" was a good idea, but I wasn't doing it.
-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to