11175
(-- --)
#21
Walter Mcginnis wrote:
Walter Mcginnis wrote:
It didn't work with Rails 2.0.2 out of the box, so I tried a little
tinkering by replacing this:
include ActionView::Helpers::TextHelper
with
include ActionView::Helpers::SanitizeHelper
I get a "undefined method `white_list_sanitizer' for #<Class:0x248a8bc>"
error.
Nevermind, got it working. Will submit to plugin maintainer...
Cheers,
Walter
I run into this similar error:
ActionView::TemplateError (undefined method `white_list_sanitizer' for
TextHelperSingleton:Class)
How did you fix that?
I used this:
http://www.csummers.org/2006/08/07/extend-string-to-use-actionviews-text-helpers/
Thanks,
Isaiah p.
11175
(-- --)
#22
Isaiah Peng wrote:
Walter Mcginnis wrote:
Walter Mcginnis wrote:
Nevermind, got it working. Will submit to plugin maintainer...
Cheers,
Walter
I run into this similar error:
ActionView::TemplateError (undefined method `white_list_sanitizer' for
TextHelperSingleton:Class)
How did you fix that?
I used this:
http://www.csummers.org/2006/08/07/extend-string-to-use-actionviews-text-helpers/
Thanks,
Isaiah p.
I never heard anything back from the plugin maintainer, so I left my
customizations "on top" of the plugin in my use of it. They can be seen
at
http://github.com/kete/kete/tree/master/vendor/plugins/acts_as_sanitized
Cheers,
Walter
11175
(-- --)
#23
Fernando Perez wrote:
What are all the plugins available for sanitizing user input and that
work with Rails 2.2.2?
You may want to checkout the new Sanitize gem. I just read about it
here:
http://www.rubyinside.com/how-to-sanitize-html-and-css-in-ruby-1429.html
As far as Rails I haven't updated to the latest version yet, so no idea
if my version of the plugin still works.
Cheers,
Walter