<h1>Liste des urls courtes</h1>

<table>
  <tr>
    <th>Url courte</th>
    <th>Url</th>

    <th>Nbr vues</th>

    <th></th>
    <th></th>
  </tr>

<% @tiny_urls.each do |tiny_url| %>
  <tr>
    <td><%= link_to "http://lepicvert.org"+tiny_url_path(tiny_url),"http://lepicvert.org"+tiny_url_path(tiny_url) %></td>
    <td><%= tiny_url.url %></td>
   
   
    <td><%= tiny_url.nbr_views %></td>
    
    <td><%= link_to 'Edit', edit_tiny_url_path(tiny_url) %></td>
    <td><%= link_to 'Destroy', tiny_url, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Tiny url', new_tiny_url_path %>
