# Testing white\_list plugin

**URL:** <https://www.ruby-forum.com/t/testing-white-list-plugin/117565>\
**Category:** Rails\
**Created:** [October 18, 2007, 4:21am UTC](https://www.ruby-forum.com/t/testing-white-list-plugin/117565 "2007-10-18T04:21:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flamingsole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f19dbf/32.png) [@flamingsole](https://www.ruby-forum.com/u/flamingsole)\
**Post date:** [October 18, 2007, 4:21am UTC](https://www.ruby-forum.com/t/testing-white-list-plugin/117565/1 "2007-10-18T04:21:20Z")

</div>

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](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
