Martyn W. wrote in post #1063175:
> 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

So, it was a link in the new.htnl.erb file referencing a list of works 
through the associated workticket. I guess I need to reassign the 
workticket parameter for the failed save render.

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