I have nested controller Reviews under Users, both generated by scaffold generator; view/index actions works well, but when I'm trying to create model (/users/1/reviews/new) there is an error
No route matches {:controller=>"reviews", :user_id=>#<Review id: nil, user_id: nil, reviewer_id: nil, predisposition: nil, description: nil, created_at: nil, updated_at: nil>}
I've tryed to change form_for @review to form_for user_reviews_path(@review), but there is the same error on create action.
How can I fix this trouble?
Also I'd be grateful if you suggest me book about Ruby On Rails recipes (I've read ROR recipes from pragmatic, but it is too simple).