Testing white_list plugin

Hello,

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
console first.

To install the plugin, I used the following command, which installed a
bunch of files:

ruby script/plugin install
http://svn.techno-weenie.net/projects/plugins/white_list

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:

white_list @provider.description

I received the following error:

NoMethodError: undefined method `white_list’ for
#Object:0x2ab33526f3f0
from (irb):2

So, I guess my question is two-fold:

  1. How can I get the white_list plugin to work properly in the console?
  2. 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.
Jonathan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs