At 14:31 +0900 1/7/09, Makoto Kuwata wrote:
> I'm not sure what is the problem,
> but why don't you try to 'def self.as_is()' ?
>
>    <% def self.as_is(&blk) ... %>

I tried adding 'self.' to the definition, as you suggest,
with no success.  So, I tried adding it to the call, as
well; no success there, either.

I have looked at the Merb code that uses Erubis; sadly, I
don't understand it well enough to adapt it to my needs.
However, it's clear that Merb isn't using straight Erubis,
so probably I can't, either.


In an effort to clarify the problem, I created a minimal
set of Merb code (http://pastie.org/354502) that shows the
problem.  When I ask the browser to display

  http://localhost:4000/pages/test_1

I get the header, monospace text, and footer.  When I try

  http://localhost:4000/pages/test_2

I get the error:

  merb : worker (port 4000) ~ compile error
  (erubis:13: syntax error, unexpected ')'
  '; _buf << ( self.as_is do ).to_s; _buf << '
                            ^
  (erubis:22: syntax error, unexpected $end, expecting ')' - (SyntaxError)
  (erubis:22:in `process_eruby'

I tried adding 'self.' in this case, as well, with no success.

The app is running on vanilla merb 1.0.7.1.

If there is anything else I can send you that would help you
to diagnose the problem (and suggest a solution :-), please
let me know!

-r
-- 
http://www.cfcl.com/rdm            Rich Morin
http://www.cfcl.com/rdm/resume     [email protected]
http://www.cfcl.com/rdm/weblog     +1 650-873-7841

Technical editing and writing, programming, and web development

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to