Displaying 1 result from an estimated 1 matches for "billing_address_form".
2008 Dec 02
4
Am I wrong or is fields_for not working right in Rails 2.2.2
...s_for method is supposed to
do, but for some reason I thought using it scoped an object around an
association.
For example, I have a User class and when you''re creating a new user I
want to use fields_for to add a BillingAddress to the user like so:
<%- fields_for :billing_address do |billing_address_form| -%>
<%= render :partial => ''billing_addresses/form'', :locals => { :f =>
billing_address_form } %>
<%- end -%>
This however, is not scoping the user object around the billing address
form fields because when I view source, I see this:
<p>
<l...