text_field without newline

Hello.

I have a very basic rails question. I'm using <%= form.text_field :title, :size => 40 %> to create a text field, but it always creates a newline after it. Is is possible to create this text field so I can enter some text after it on the same line?

Thanks.

I have a very basic rails question. I'm using <%= form.text_field :title, :size => 40 %> to create a text field, but it always creates a newline after it. Is is possible to create this text field so I can enter some text after it on the same line?

<%= .... -%>

That dash will suppress the newline.

-philip

if you are refering to what you see in the browser it is very well possible that's just the default setting for that browsers rendering. If it considers input fields as block elements it will always insert a break after it. You can override this with a CSS selector input{display: inline}. I think some versions of IE 6 do that. It might be the 6 quarter pounders I just ate speaking. But that CSS selector might help incase the minus trick <%= ... -%> Philip suggested doesn't work out for you.