Tell me more ×  I want to create a set of fields to create a new
location in my activties/_form.html.erb  Once i have the form
working, I'm planning on showing the form when clicking an add
another location button or an extra option in the select
location selectbox.  The story so far:   <%= f.fields_for
:location do |builder| %> <%= render 'location_fields', :f =>
builder %> <%= builder.hidden_field :provider_id, :value => %>
<% end %>   attr_accessible :name, :price, :location,
:location_attributes accepts_nested_attributes_for :location
The issue is, this all works a bit too well. When you edit an
activity record, the location fields are pre-populated with the
associated location record.  How should i create a blank form so
a new location is always created and associated with the
activity?  share|improve this question add comment  1 Answer
You need to create a "New" location that does not have existing
data. This will then be used by this form.  For example: In your
controller  @new_location =  You can th