2009/8/6 Gary Chris <[email protected]>: > > Hi, > > I've come across a strange issue with one of my views. > > Simple login form, > > <% form_tag do -%> > > <p><label for="login">Login</label><br/> > <%= text_field_tag 'login' %></p> > > <p><label for="password">Password</label><br/> > <%= password_field_tag 'password' %></p> > > <p><%= submit_tag 'Log in' %></p> > <% end -%> > > > But browsers are rendering the text field input box huge. > It's like a mini text area. > The only happens when I pass in 'login' as a parameter to > text_field_tag. > If I pass it password, the input box is rendered as a correct size. >
Have you had a look at the generated html (View, Page Source or similar in browser) to see if it looks ok? Also try copying the complete source and pasting into html checker at http://validator.w3.org/#validate_by_input in case something else on the page is messing it up and confusing the browser. Colin --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

