Sinatra Web Framework fails on rendering ERB while MRI works - LocalJumpError - 
yield called out of block
---------------------------------------------------------------------------------------------------------

                 Key: JRUBY-2599
                 URL: http://jira.codehaus.org/browse/JRUBY-2599
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
         Environment: Windows Vista
Sinatra Edge as of 5/31/2007 (http://github.com/bmizerany/sinatra/tree/master)

64 Bit version of Java

$ java -version
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
            Reporter: Chris Schneider
            Priority: Minor


See the Sinatra bug report at: 
http://sinatra.lighthouseapp.com/projects/9779/tickets/24-running-on-jruby-fails-at-rendering-erb-templates

Copied from the original bug report:

The sinatra app (app.rb):

require '../sinatra/lib/sinatra.rb'

get '/' do
    "Hello World"
end

get '/:foo' do
    erb :foo
end



The template (views/foo.erb):

<html>
    <head></head>
    <body>Erb rendered</body>
</html>


The command to run the application:
jruby app.rb


The error:

Params:
{"foo"=>"blah"}
                        
LocalJumpError - yield called out of block




The working part:
Going to '/' returns "Hello World" just as expected.  Using a Haml renderer 
works fine as well.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to