I have one table called "posts" and two column lat/lng in sqlite. I just want to show it in leaflet map. I tried the loops each do
<% @posts.each do |post| %> L.marker([<%=@post.lat%>,<%=@post.lng %>]).addTo(map); <% end %>
Unfortunately I only see the last entered values(lat/lng) in the map. how can I do? thanks!