Re: ERb syntax

Liquid
Tue, 25 Oct 2005 10:59:10 -0000

I found this in the AWDOR book. p82


On 10/25/05, Alex Young <alex-qV/boFbD8Meu8LGVeLuP/g@public.gmane.org>
wrote:
>
> Is that documented anywhere? If so, where? I was hunting for it
> recently, and couldn''t find it...
>
> --
> Alex
>
> Liquid wrote:
> > Hi Lee,
> >
> > It suppresses the following newline from your output. Stops the output
> from
> > having extra blank lines in it.
> >
> > Cheers
> >
> > On 10/25/05, Lee Pope
<leepope-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> >>Can anybody tell me what the closing erb tag in this expression
means?
> >>
> >><%= @myobject -%>
> >>
> >>as opposed to
> >>
> >><%= @myobject %>
> >>
> >>?
> >>
> >>(Sorry if this is trivial, but I can''t find anything in
the ERb
> >>documentation, and those characters are hard to search the web on)
> >>
> >>Lee
> >>
> >>*********************************
> >>
> >>All that is gold does not glitter.
> >>Not all those who wander are lost.
> >>The old who are strong do not whither.
> >>Deep roots are not touched by the frost.
> >>-- J.R.R. Tolkein
> >>
> >>
> >>_______________________________________________
> >>Rails mailing list
> >>Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> >>http://lists.rubyonrails.org/mailman/listinfo/rails
> >>
> >>
> >>
> >
> >
> >
> >
------------------------------------------------------------------------
> >
> > _______________________________________________
> > Rails mailing list
> > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails