diff --git a/app/views/livres/index.html.erb b/app/views/livres/index.html.erb index 4baf364..c5aec0e 100644 --- a/app/views/livres/index.html.erb +++ b/app/views/livres/index.html.erb @@ -1,5 +1,4 @@
Rechercher un livre : @@ -7,19 +6,27 @@ <%= submit_tag "Rechercher" %>
<% end %> -Nombre total de livres : <%= @livres.count %>
- -| Titre | +Auteur | +Date de sortie | +Actions | +
|---|---|---|---|
| <%= livre.titre %> | +<%= livre.auteur %> | +<%= livre.date_de_sortie %> | ++ <%= button_to "Supprimer", livre_path(livre), method: :delete, data: { confirm: "Supprimer ce livre ?" } %> + | +
<%= link_to "Ajouter un nouveau livre", new_livre_path %>