Created
September 8, 2012 19:55
-
-
Save edison/3679200 to your computer and use it in GitHub Desktop.
index
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% if @quotes.any? %> | |
<table class="table table-striped"> | |
<tbody> | |
<% @quotes.each do |quote| %> | |
<tr> | |
<td><%= quote.content %></td> | |
<td><%= link_to 'Excluir', quote_path(quote), method: :delete, confirm: 'Tem certeza?', class: 'btn' %></td> | |
</tr> | |
<% end %> | |
</tbody> | |
</table> | |
<% else %> | |
<div class="well">Nenhuma frase cadastrada.</div> | |
<% end %> | |
<%= link_to 'Cadastre uma frase', new_quote_path, class: 'btn btn-primary' %> | |
<%= link_to 'Voltar ao início', root_path, class: 'btn btn-primary' %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment