Skip to content

Instantly share code, notes, and snippets.

@edison
Created September 8, 2012 19:54
Show Gist options
  • Save edison/3679188 to your computer and use it in GitHub Desktop.
Save edison/3679188 to your computer and use it in GitHub Desktop.
_quote
<div class="hero-unit">
<% if @quote %>
<blockquote>
<p><%= @quote.content %></p>
<small><%= @quote.author %></small>
</blockquote>
<% else %>
<p>Nenhuma frase cadastrada.</p>
<% end %>
</div>
<%= link_to 'Cadastre uma frase', new_quote_path, class: 'btn btn-primary' %>
<%= link_to 'Ver todas as frases', quotes_path, class: 'btn' %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment