RVince wrote: > I get a line break between the label and the text field. How do I > precent that? > > Agustin Viñao wrote: >> Use "-" at the end of the code in the view, like this: >> <%= f.label "Amount $" -%> >> <%= f.text_field :amount -%> >> _______________________ >> Agustin Viñao >> www.agustinvinao.com.ar >> agustinvinao (Skype)
Wait... Do you mean that you're getting a unwanted line break in the HTML source, or on the rendered web page? <%= -%> will prevent line break characters in the underlying HTML source code, but that line break character should not generate a new line in the rendered HTML. That should require a <br /> tag. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

