Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h4>Create a location</h4>
- <%= form_for(@location) do |f| %>
- <%= f.label :name %>
- <%= f.text_field :name %>
- <br>
- <%= f.label :description %>
- <%= f.text_field :description %>
- <br><br>
- <h3>GPS Coords:</h3>
- <% 2.times do |i| %>
- <%= fields_for(@location.gps_coords.build) do |gps_form| %>
- <p>
- <%= gps_form.label :lat %>
- <%= gps_form.text_field :lat %>
- <br>
- <%= gps_form.label :long %>
- <%= gps_form.text_field :long %>
- <br>
- </p>
- <% end %>
- <% end %>
- <br><br>
- <%= f.submit "Create location" %>
- <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement