Editing location

<% form_for(@location) do |f| %> <%= f.error_messages %>

<%= f.label :number %>
<%= f.text_field :number %>

<%= f.label :street %>
<%= f.text_field :street %>

<%= f.label :city %>
<%= f.text_field :city %>

<%= f.label :state %>
<%= f.select(:state, states_options(@location.state)) %>

<%= f.label :zip %>
<%= f.text_field :zip %>

<%= f.label :url %>
<%= f.text_field :url %>

<%= f.submit 'Update' %>

<% end %> <%= link_to 'Show', @location %> | <%= link_to 'Back', customer_locations_path(@location.customer_id) %>