Hello-

I have a resource for Orders with a nested singleton for Address. I
find that is I use the form_for syntax like this:

form_for([EMAIL PROTECTED], @address)

I get an error that says:

undefined method `order_addresses_path' for #<ActionView::Base:
0xb6afcefc>

if I change the form_for syntax to look like this:

form_for(@address, :url => order_address_path(@order))

then it starts to work. My question is, is this the expected behavior
of form_for or am I doing something wrong?

Regards,
Eric
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to