Topic: Akismet Plugin for Rails
I'm having a hard time just including this into my comments controller.
I've installed it per the directions on the site:
script/plugin install svn://rubyforge.org/var/svn/ror-akismet
The plugin appears to be in the right place; under vendors/plugins/ror-akismet
I have modified the akismet.yml with my specific Akismet API key and blog url.
I add "include Akismet" (without quotes) to my comments controller.
When I try to call the Create action, I get a NoMethodError:
NoMethodError in CommentsController#create
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.empty?
Just in case it was something inside my code for the Create action, I removed all the code from the Create action (aka having an empty action) and it still raises the same error.
Simply removing the incude Akismet line puts everything back to normal. Of course, then I can't use Akismet.
I'm confused as to why this is happening.
Any help would be greatly appreciated.