Sorry for a silly question, but how do I get a default value into a
text_field
for a _form partial.
eg if I want to set the cost field below to default to “1.00”
<%= text_field ‘cost’, ‘cost_value’ , “size” => 7 %>
Sorry for a silly question, but how do I get a default value into a
text_field
for a _form partial.
eg if I want to set the cost field below to default to “1.00”
<%= text_field ‘cost’, ‘cost_value’ , “size” => 7 %>
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs