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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---