Mark Mark - 1 year ago 95
Ruby Question

Adding a default value to text-input in simple-form

I want to add a default value to a text-input field using simple-form.

it is not used as default....

<%= f.input :user, :placeholder => '' %>

pdg pdg
Answer Source
<%= f.input :user, :input_html => { :value => '' } %>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download