Forum: Ruby Help needed with this ERB code

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
0aa1ab8cdb048f08b4d5a9aa5076e7d1?d=identicon&s=25 Frank Church (Guest)
on 2007-07-21 22:04
(Received via mailing list)
Is there any code in this ERB snippet that causes text after the EOF
to be included in the template.

Unless my understanding of ERB is inadequate there has to be some bug in
It has me at my wit's end.


template = <<-EOF

     # rsync push mode

     #rsync_push_command check

     # <%= rsync_push_command %>

     # rsync_forced_command
     # <%= rsync_forced_command %>


some program code here

After execution the text "some program code here" appears in the
template's output

Are there some circumstances under which ERB goes haywire?

Is there an alternate syntax to the ERB.NEW <<-EOF ... EOF syntax for
when the text is on multiple lines. - Frank
0aa1ab8cdb048f08b4d5a9aa5076e7d1?d=identicon&s=25 Frank Church (Guest)
on 2007-07-21 22:19
(Received via mailing list)
On 21/07/07, Frank Church <> wrote:
>      # rsync push mode
Is there some way the ERB internal stack or whatever can be reset
between calls to ensure that there is nothing left in there to cause
This topic is locked and can not be replied to.