Sha256: e2ad26763bbd6f47520f21579baf36d5699b6cdafff7c46c95d04bab45d19eae

Contents?: true

Size: 746 Bytes

Versions: 7

Compression:

Stored size: 746 Bytes

Contents

<h1>Listing cities</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Country</th>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @cities.each do |city| %>
  <tr>
    <td><%= city.name %></td>
    <td><%= city.country.name %></td>
    <td><%= link_to 'Show', [@country, city] %></td>
    <td><%= link_to 'Edit', edit_country_city_path(@country, city) %></td>
    <td><%= link_to 'Destroy', [@country, city], method: :delete, data: { confirm: 'Are you sure?' } %></td>
    <td><%= link_to 'Streets', country_city_streets_path(@country, city) %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New City', new_country_city_path(@country) %>
<br>
<%= link_to 'Back to Countries', countries_path %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dynamic_controller-0.0.8 spec/dummy/app/views/cities/index.html.erb
dynamic_controller-0.0.7 spec/dummy/app/views/cities/index.html.erb
dynamic_controller-0.0.6 spec/dummy/app/views/cities/index.html.erb
dynamic_controller-0.0.5 spec/dummy/app/views/cities/index.html.erb
dynamic_controller-0.0.4 spec/dummy/app/views/cities/index.html.erb
dynamic_controller-0.0.3 spec/dummy/app/views/cities/index.html.erb
dynamic_controller-0.0.2 spec/dummy/app/views/cities/index.html.erb