<%= form_for(@auth_shopping_place, url: @auth_shopping_place.new_record? ? places_path : place_path(@auth_shopping_place), method: @auth_shopping_place.new_record? ? :post : :put, as: :place, remote: true) do |f| %> <% if @auth_shopping_place.errors.any? %>

<%= pluralize(@auth_shopping_place.errors.count, "error") %> prohibited this auth_shopping_place from being saved:

<% end %>
<%= f.text_field :nearest_address %> <%= f.label :nearest_address %>
    <%= f.button :submit, {:class => "waves-effect waves-light btn-small blue-grey"} do %> Create <% end %>
    <% end %>