search for: create_review_for_a_school

Displaying 1 result from an estimated 1 matches for "create_review_for_a_school".

2009 Feb 12
4
routes
I''m trying to figure this. in my schools controller i want to do this.... # implement a create action to create just the review for the School... def create_review_for_a_school @review = Review.new @school = School.find(params[:school_id]) @review = @school.reviews.build(params[:review]) if @review.save # The creation worked....do this flash[:notice] = ''Review was successfully updated.'' format.html { redirect_to(@school)...