hi,
what about to put

WhiteListHelper.tags += %w(a em p strong blockquote h2 ul li)

into app/helpers/application_helper.rb ?

instead of config/...

tom

Petan Cert wrote:
> Hi all,
> 
> I just installed whiteList and sanitize_params plugins to get rid of
> with some bad html tags .....
> 
> Put in my environment.rb:
> config.plugins = [:white_list, :sanitize_params, :all]
> 
> and in application.rb:
> before_filter :sanitize_params
> 
> add ok tags to config/initializers/whitelist_conf.rb
> WhiteListHelper.tags += %w(a em p strong blockquote h2 ul li)
> 
> but all the tags from the text fields are stripped. Am I missing
> something?
> THx P.


-- 
===============================================================================
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache

www.meinlschmidt.com  www.maxwellrender.cz  www.lightgems.cz
===============================================================================

--~--~---------~--~----~------------~-------~--~----~
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