I have a threaded Post using Ancestry. When replying to a Post from another user I get :
on the line :
@post = current_user.posts.new(params[:post])
Started POST "/posts.js" for 127.0.0.1 at Tue Jun 07 13:50:19 +0300 2011
Processing by PostsController#create as JS Parameters: {"commit"=>"Post", "post"=>{"body"=>"a
", "parent_id"=>"5", "discussion_id"=>"1"}, "authenticity_token"=>"RUra0Ndv67cgaGshBS5yCJMq5V6WG6OuZiqDbbWP5cc=", "utf8"=>"✓"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE ("users"."id" = 33) LIMIT 1 Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE ("posts".user_id = 33) AND ("posts"."id" = 5) LIMIT 1 Completed in 238msActiveRecord::RecordNotFound (Couldn't find Post with ID=5 [WHERE ("posts".user_id = 33)]):
app/controllers/posts_controller.rb:28:in `create'
How can I debug it ?