my controller looks like this def create @game = Game.find_by_id(params[:id]) @review = current_user.reviews.build(params[:review]) @review.game_id = @game.id @review.user_id = current_user.id
if @review.save flash[:success] = "review created!" redirect_to @review else render 'new' end end def new @review = Review.new(params[:review]) end but it seams that @game can't be located in the url "localhost:3000/games/1/reviews/new" even though I think I set the form path correct In "reviews#new" the game object still seems to be unknown :/ -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.