brady8/thumbs_up — Issue #29: undefined method `vote_for' 
Author: Akram-Khan
Created: 2012-01-10 13:26:59+00:00
State: open

I am getting the no method error with for the my postscontroller.

This is the log file in case you need it :-

Started POST "/topics/1/posts/1/vote_up" for 127.0.0.1 at 2012-01-10 18:56:04 +0530
Creating scope :page. Overwriting existing method Post.page.
Processing by PostsController#vote_up as HTML
Parameters: {"authenticity_token"=>"L1FZ28iriXO6D2P1nwjUgaVdmqjeQNMlfOcCPWk2Y6o=", "topic_id"=>"1", "id"=>"1"}
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
[1m[35mForem::Topic Load (0.2ms)[0m SELECT "forem_topics".* FROM "forem_topics" WHERE "forem_topics"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mPost Load (0.2ms)[0m [1mSELECT "forem_posts".* FROM "forem_posts" WHERE "forem_posts"."id" = ? LIMIT 1[0m [["id", "1"]]
Completed 500 Internal Server Error in 102ms

NoMethodError (undefined method `vote_for' for #):
app/controllers/posts_controller.rb:6:in `vote_up

Thanks,
Akram