Skip to content

@edison /form.erb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
form
<% if @quote.errors.any? %>
<div class="alert alert-error">
<% @quote.errors.full_messages.each do |msg| %>
<p><%= msg %></p>
<% end %>
</div>
<% end %>
<%= form_for @quote do |f| %>
<%= f.label :content %>
<%= f.text_area :content, rows: 4, class: 'input-xxlarge' %>
<%= f.label :author %>
<%= f.text_field :author, class: 'input-xxlarge' %>
<p>
<%= f.submit 'Criar frase', class: 'btn btn-large btn-primary' %>
<%= link_to 'Cancelar', root_path, class: 'btn' %>
</p>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.