-
-
Save thedillonb/8209218 to your computer and use it in GitHub Desktop.
How to add value to input area in rails form. Test Moo cow!
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
This is another file... Cool! |
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
<div class="form-inputs"> | |
<%= f.input :title, :input_html => { :value => "This is title field value." } %> | |
<%= f.input :body, :input_html => { :value => "This is body field value." } %> | |
</div> | |
or | |
<div class="form-inputs"> | |
<%= f.input :title, input_html: { :value => "This is title field value." } %> | |
<%= f.input :body, input_html: { :value => "This is body field value." } %> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment