Created
October 18, 2013 18:32
-
-
Save julioprotzek/7046007 to your computer and use it in GitHub Desktop.
This file contains 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
= 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' |
This file contains 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
@import "bootstrap" | |
body | |
margin-top: 60px | |
textarea.form-control | |
height: 250px | |
select.form-control | |
width: 120px | |
display: inline-block |
This file contains 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
h1 Editar artigo | |
== render 'form' |
This file contains 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
h1 New article | |
== render 'form' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment