Ruby on Rails Sunday, April 23, 2017

You can't have multiple objects for a form_for, it can only be one.

If you want to do a subobject, a fields-for is available.

On Tuesday, April 4, 2017 at 7:00:20 PM UTC-4, fugee ohu wrote:
<%= form_for[@user, @address], :url => users_addresses_set_current_path(current_user.id, a.id) do |f| %>

this doesn't work 

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/67d318aa-9693-494a-a901-96debb0e4b6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment