Ruby on Rails
Tuesday, December 28, 2010
> Since your resources are nested, you need to use the array syntax of
> form_for so that the proper route is generated.
<%= form_for :command_officer, @command_officer do |f| %>
That one doesn't generate any errors, thanks.
But when I fill in the form and press submit, I get:
Routing Error
No route matches "/incidents/41/timesheet/command_officer/new"
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment