Last active
December 24, 2015 10:39
-
-
Save gmaliar/6785938 to your computer and use it in GitHub Desktop.
simple_form_for bootstrap3
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 @task, :validate => true, :defaults => { :wrapper_html => {:class => 'form-group'}, :input_html => { :class => 'form-control' } }, :html => { :role => "form" } do |f| %> | |
<%= f.input :title %> | |
<%= f.input :content %> | |
<%= f.input :author %> | |
<%= f.button :submit %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment