Here Document format in Views

I was wondering how I could use the Here document format in a view.

Say something like this:

<% @to_header = <<EOF

EOF %>

But that does not work, giving me a syntax error. Any help on this
would be great!

-Ray

Ray M. wrote:

I was wondering how I could use the Here document format in a view.

Say something like this:

<% @to_header = <<EOF

EOF %>

But that does not work, giving me a syntax error. Any help on this
would be great!

The terminating string is sensitive to trailing whitespace. Try:

<% @to_header = <<EOF

EOF
%>

And make sure you have no spaces or tabs after the EOF


Devin Ben-Hur 503/860-4114 mailto:[email protected]

You may not have noticed, but we live in one of the safest,
most peaceful, times in human history. In the US, the three
leading causes of death are: killing yourself, killing yourself,
and killing yourself http://tinyurl.com/msxhq.


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.2/422 - Release Date:
8/17/2006