I have a student in a nested model that refers to high_school. The problem is that when I go to create a new student (/ high_schools / 1 / students / new), I get this error:
No route matches {:action=>"destroy", :controller=>"students", :high_school_id=>
<%= form_for @student, :url => high_school_student_path(@high_school, @student), :html => { :multipart => true } do |f| %>
I think I'm just doing something very simple and stupid that I can't think of.
My environment: Rails3 and Ruby1.9.2dev
Thank!
source
share