form_for with url and params

<%= form_for[@user, @address], :url => users_addresses_set_current_path(current_user.id, a.id) do |f| %>

this doesn’t work

You can find more information for ‘form_for’ straight from the source:

http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html

Cheers

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.