Skip to content

Instantly share code, notes, and snippets.

@julioprotzek
Created October 18, 2013 18:32
Show Gist options
  • Save julioprotzek/7046007 to your computer and use it in GitHub Desktop.
Save julioprotzek/7046007 to your computer and use it in GitHub Desktop.
= simple_form_for(@article) do |f|
= f.error_notification
.form-inputs
= f.input :title
= f.input :body
= f.input :published_at
.form-actions
= f.button :submit, class: 'btn btn-primary'
@import "bootstrap"
body
margin-top: 60px
textarea.form-control
height: 250px
select.form-control
width: 120px
display: inline-block
h1 Editar artigo
== render 'form'
h1 New article
== render 'form'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment