spec/dummy/app/views/countries/index.html.erb in dynamic_controller-0.0.1 vs spec/dummy/app/views/countries/index.html.erb in dynamic_controller-0.0.2
- old
+ new
@@ -1,23 +1,25 @@
-<h1>Listing countries</h1>
-
-<table>
- <tr>
- <th>Name</th>
- <th></th>
- <th></th>
- <th></th>
- </tr>
-
-<% @countries.each do |country| %>
- <tr>
- <td><%= country.name %></td>
- <td><%= link_to 'Show', country %></td>
- <td><%= link_to 'Edit', edit_country_path(country) %></td>
- <td><%= link_to 'Destroy', country, method: :delete, data: { confirm: 'Are you sure?' } %></td>
- </tr>
-<% end %>
-</table>
-
-<br />
-
-<%= link_to 'New Country', new_country_path %>
+<h1>Listing countries</h1>
+
+<table>
+ <tr>
+ <th>Name</th>
+ <th></th>
+ <th></th>
+ <th></th>
+ <th></th>
+ </tr>
+
+<% @countries.each do |country| %>
+ <tr>
+ <td><%= country.name %></td>
+ <td><%= link_to 'Show', country %></td>
+ <td><%= link_to 'Edit', edit_country_path(country) %></td>
+ <td><%= link_to 'Destroy', country, method: :delete, data: { confirm: 'Are you sure?' } %></td>
+ <td><%= link_to 'Cities', country_cities_path(country) %></td>
+ </tr>
+<% end %>
+</table>
+
+<br />
+
+<%= link_to 'New Country', new_country_path %>