public
Created

_quote

  • Download Gist
_quote.erb
HTML+ERB
1 2 3 4 5 6 7 8 9 10 11 12 13
<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' %>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.