Sha256: 8eeecbd416e71fa57e5fc0c165191ef8c0f66c0ed6f9ff7761f61234a025ac53

Contents?: true

Size: 717 Bytes

Versions: 4

Compression:

Stored size: 717 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

4 entries across 4 versions & 1 rubygems

Version Path
dynamic_controller-0.0.12 spec/dummy/app/views/cities/index.html.erb
dynamic_controller-0.0.11 spec/dummy/app/views/cities/index.html.erb
dynamic_controller-0.0.10 spec/dummy/app/views/cities/index.html.erb
dynamic_controller-0.0.9 spec/dummy/app/views/cities/index.html.erb