You can use the #{ /* ruby code */ } syntax inline as well, which works particularly well for cases like this.
So in your case, since you don't want the space, you could write: %p %label Indirizzo: #{@supplier.address},#{@supplier.street_number} -- Lorin Tackett Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Tuesday, June 7, 2011 at 1:39 AM, mauro wrote: > I have this code: > > %p > %label Indirizzo: > = @supplier.address > = @supplier.street_number > > I want to insert a comma between supplier.address and > supplier.street_number. > If I do: > > %p > %label Indirizzo: > = @supplier.address > , > = @supplier.street_number > > I have a space after supplier.address and before suppler.street_number > but I don't want the space after supplier.address. > How Can I do? > > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to haml@googlegroups.com > (mailto:haml@googlegroups.com). > To unsubscribe from this group, send email to > haml+unsubscr...@googlegroups.com (mailto:haml+unsubscr...@googlegroups.com). > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to haml@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.