1
I rendered a view inside another, because my register has 3 tables inside a CRUD.
the form is in the view.
I rendered the custom_address this way,
Note: it will only save the customer’s address.
<%= form.fields_for :customer_addresses, @customer.customer_addresses.build do |customer_address_fields| %>
<%= render 'customer_address_fields', customer_address_fields: customer_address_fields %>
<% end %>
But when I save the Lord, he’s not saving the Lord, he wanted a hand in it.
def customer_address_params
params.permit(:address_type_id, :primary_address, :country, :zip_code, :street, :number, :complement, :district, :city, :state)
end
But no value is coming in the variables.