Fixed code:
> def create > @review = @restaurant.reviews.build(params[:review]) > @review.user = current_user # FIXED HERE > if (@review.save) # AND HERE > redirect_to restaurant_path(@restaurant) > else > render :action => "new" > end > end > this creates two separate reviews, one for each model. fields for a > review are: > It will do, you were building two reviews and then saving them both. You should create one and then save it. Cheers, Andy -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

