I’ve just attempted to install the white_list plugin to secure various
text areas. I’m seeking a way to filter the posted content before it is
implemented in the database, but I wanted to get it to work in the
To install the plugin, I used the following command, which installed a
bunch of files:
ruby script/plugin install
I then restarted apache.
In ruby/script console, I then tried the following:
@provider = Provider_find_by_id(39)
(got the values for the provider)
then, I tried:
I received the following error:
NoMethodError: undefined method `white_list’ for
So, I guess my question is two-fold:
- How can I get the white_list plugin to work properly in the console?
- How can I get the white_list plugin to filter the posted content
before it is inserted into the database?
Thanks so much for any help.