ok thanks fred... but...

class ReviewsController < ApplicationController

  def create

    @school = School.find(params[:school_id])

    @review = @school.reviews.build(params[:review])

    if @review.save
      redirect_to @school
    else
      # what goes here ???
    end


  end

end

-- 
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 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to