<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 -- http://en.wikipedia.org/wiki/Dark_ambient --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 9/19/06, Dark Ambient <sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 ?Have you tried :size => 5? (Symbol vs. string) -- The important thing is not to stop questioning. -- Albert Einstein --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Michael Campbell wrote:> On 9/19/06, Dark Ambient <sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 ? >> > > Have you tried :size => 5? (Symbol vs. string) > >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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---