(I really should put something like this on the wiki as well)
How many actually use the Blacklist page in admin? I'd sort of left
it alone because I knew it uses the black art of regex. But I've had
a little look at it today and it does use string expressions as well.
So if you are seeing spammy comments along the usual lines of 'poker'
or 'pills' ... hmm that's probably going to get trapped in peoples
filters ... anyway, you can create a new pattern and just put the
term you want blocked in the body of the post. As long as you set
the type to string. You can see it working in logs:
[SP] Scanning for StringPattern poker
[SP] Hit: String 'poker' matched
Comments matching any patterns will not be posted.
Be aware though there isn't any form of moderation on this ... so if
your friends are wanting to organise a poker night then you won't
hear about it on your site :)
**
While testing I did run across some of those damn NoMethodError log
entries again ... I'm going to have to find out what they are and are
they linked to the Rails errors that I slam into sometimes? Do they
make any sense to developers? Is it a Rails thing, a Typo thing or a
mixture of both?
NoMethodError (undefined method `look_for_needed_db_updates' for
#<Admin::BlacklistController:0x4097a83c>):
/vendor/rails/actionpack/lib/action_controller/filters.rb:399:in
`send'
/vendor/rails/actionpack/lib/action_controller/filters.rb:399:in
`call_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:394:in
`each'
/vendor/rails/actionpack/lib/action_controller/filters.rb:394:in
`call_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:383:in
`before_action'
/vendor/rails/actionpack/lib/action_controller/filters.rb:365:in
... blah, blah, blah
Gary
_______________________________________________
Typo-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/typo-list