This project is archived and is in readonly mode.
Error with rails 3 nested routes
-
Andrew White
You need to pass the id to the path helper:
<%= form_for @pledge, :url => admin_pledge_path(@pledge) do |f| %>This should also work:
<%= form_for [:admin, @pledge] do |f| %> -
krschacht (at gmail)
Ack, sorry, you're right. That second example you gave solved eliminated the error.
That error message really threw me, I was looking under the wrong rock with all that talk about routes. :)
Thanks Andrew. I'll close out this ticket (if I can).
-
Rohit Arondekar
- State changed from new to invalid