Sha256: 52f15cc4ee23e1c90ff48749332001b2d1630018bf17f8e085a57f7693a20994

Contents?: true

Size: 686 Bytes

Versions: 4

Compression:

Stored size: 686 Bytes

Contents

<h1>Listing streets</h1>

<table>
  <tr>
    <th>Name</th>
    <th>City</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

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

<br />

<%= link_to 'New Street', new_country_city_street_path(@country, @city) %>
<br>
<%= link_to 'Back to Cities', country_cities_path(@country) %>

Version data entries

4 entries across 4 versions & 1 rubygems

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