Text field size not taking

Company Name <%= f.text_field "company_name", "size" => 5 %>

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

On 9/19/06, Dark A. [email protected] wrote:

Company Name <%= f.text_field "company_name", "size" => 5 %>

Code above , size doesn’t seem to have any effect on field size. I
checked CSS and nothing showing conflict there. Any suggestions ?

Have you tried :size => 5? (Symbol vs. string)


The important thing is not to stop questioning. – Albert Einstein

Michael C. wrote:

Are you guys talking about visual size of the field or maximum size of
the string?

If former then :size => 5, if latter then :maxlength => 5

All the Best!

Sergey.

Dark A. wrote:

Company Name <%= f.text_field "company_name", "size" => 5 %>

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?

Dark A. wrote:

Company Name <%= f.text_field "company_name", "size" => 5 %>

Code above , size doesn’t seem to have any effect on field size.

Can you show us the HTML it’s producing?

Chris