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


-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to