<p><label for="<%= form_name -%>_<%= :company_name -%>">Company Name</label>
<%= f.text_field "company_name", "size" => 5 %></p>
Code above , size doesn't seem to have any effect on field size. I
checked CSS and nothing showing conflict there. Any suggestions ?
TIA
Stuart
Have you tried :size => 5? (Symbol vs. string)
Dark Ambient wrote:
<p><label for="<%= form_name -%>_<%= :company_name -%>">Company Name</label>
<%= f.text_field "company_name", "size" => 5 %></p>
Code above , size doesn't seem to have any effect on field size.
Can you show us the HTML it's producing?
Chris
Dark Ambient wrote:
<p><label for="<%= form_name -%>_<%= :company_name -%>">Company Name</label>
<%= f.text_field "company_name", "size" => 5 %></p>
Code above , size doesn't seem to have any effect on field size. I
checked CSS and nothing showing conflict there. Any suggestions ?
TIA
Stuart
Doesn't text_field take 3 parameters and size should be in the 3rd, not the 2nd?