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. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
> 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 --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
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. On Jul 4, 5:43 am, oozy <oozy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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.--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---