Does anyone know why puts and print couldn''t be aliased to append to
the _erbout variable that is in the current scope? That way you could
stick puts and print in the middle of your <% %> code.
Charles Comstock
On 4/21/05, Dee Zsombor
<dee.zsombor-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Quoting from API docs:
>
> concat(string, binding)
>
> The regular puts and print are outlawed in eRuby. It''s recommended
to
> use the <%= "hello" %> form instead of print
"hello". If you
> absolutely must use a method-based output, you can use concat.
It''s
> use like this <% concat "hello", binding %>. Notice that it
doesn''t
> have an equal sign in front. Using <%= concat "hello" %>
would result
> in a double hello.
>
> Zsombor
>
> On 4/21/05, Gábor Sebestyén
<segabor-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > What statement is equivalent to <%= ... %>? render_text? printf?
> >
> > Gábor
> > _______________________________________________
> > Rails mailing list
> > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails
> >
>
> --
> http://deezsombor.blogspot.com
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>