Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="field">
- <%= form.label :start %>
- <%= collection_select(:path, :start, Location.all, :id, :Name, prompt: true) %>
- </div>
- <div class="field">
- <%= form.label :end %>
- <%= collection_select(:path, :end, Location.all, :id, :Name, prompt: true) %>
- </div>
- <%= content_tag :div, class: "temp_information", data: {lat: @location.Latitude,long: @location.Longitude} do %>
- <% end %>
- <script>
- map code
- $('.temp_information').data('lat')
- $('.temp_information').data('long')
- </script>
- alert(JSON.stringify(gon.paths))
- alert(JSON.stringify(gon.path))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement