Trying to get my head around routes, particularly RESTful routes, and
mapping to controllers, and the magic urls that go with them.
I have a model called course_materials which acts_as_tree which also
belongs_to a model called course.
I have this in routes.rb
map.resources :courses do |course|
course.resources :course_materials do |course_material|
in views/course_materials/new.rhtml I have a form with:
url => course_material_path
This generates the html I would imagine it should. e.g.
However, when the form is submitted, instead of the controller maping
this to ‘create’ it maps it to ‘update’.
Could someone help me grasp why this isnt mapping to create, and what
I might need to do so? is what Im trying to do even possible with