diff options
Diffstat (limited to 'app/views/pois/index.html.erb')
-rw-r--r-- | app/views/pois/index.html.erb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app/views/pois/index.html.erb b/app/views/pois/index.html.erb new file mode 100644 index 0000000..0e1d1d1 --- /dev/null +++ b/app/views/pois/index.html.erb @@ -0,0 +1,31 @@ +<h1>Listing pois</h1> + +<table> + <thead> + <tr> + <th>Message</th> + <th>Lat</th> + <th>Lon</th> + <th></th> + <th></th> + <th></th> + </tr> + </thead> + + <tbody> + <% @pois.each do |poi| %> + <tr> + <td><%= poi.message %></td> + <td><%= poi.lat %></td> + <td><%= poi.lon %></td> + <td><%= link_to 'Show', poi %></td> + <td><%= link_to 'Edit', edit_poi_path(poi) %></td> + <td><%= link_to 'Destroy', poi, method: :delete, data: { confirm: 'Are you sure?' } %></td> + </tr> + <% end %> + </tbody> +</table> + +<br> + +<%= link_to 'New Poi', new_poi_path %> |