Created
January 1, 2014 16:01
-
-
Save TechFounder/8209090 to your computer and use it in GitHub Desktop.
How to add value to input area in rails form.
This file contains hidden or 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