I have a fairly straight forward rails app, version 3.2. When I try to create a Work instance, with deliberately invalid fields from a form, I get a routing error:
No route matches {:controller=>"works"}
This does not happen when I try the same test with an update on a Work instance. After an attempted update I get the edit.html.erb page rendered with the invalid fields highlighted.
I dont understand why after failing the save in the controller and trying to render "new" it would give me a route matching error. Any ideas?
Attached are my model, controller and routes.rb
Attachments: http://www.ruby-forum.com/attachment/7456/routes.rb http://www.ruby-forum.com/attachment/7457/work.rb http://www.ruby-forum.com/attachment/7458/works_controller.rb