Named routes not working with jruby-rack?

I’m trying to go through this tutorial using jruby:

Things seem to be working fine using script/server, but building a
.war using warbler doesn’t seem to work:
ActionView::TemplateError (undefined local variable or method
`new_post_path’ for #ActionView::Base:0x121671e) in
posts/index.html.erb:

app/views/posts/index.html.erb:26:in

_run_erb_47app47views47posts47index46html46erb' gems/gems/actionpack-2.0.2/lib/action_view/base.rb:637:in compile_and_render_template’
gems/gems/actionpack-2.0.2/lib/action_view/base.rb:365:in
render_template' gems/gems/actionpack-2.0.2/lib/action_view/base.rb:316:in render_file’
gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:1100:in
render_for_file' gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:858:in render’

I tried building a war with goldspike instead, and the named routes
worked, but then I get session errors because the servlet session
store doesn’t support generate_digest, and I couldn’t get it to just
use cookie_store. Any ideas how I can get this to work?


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Tue, May 27, 2008 at 7:32 PM, Rib R. [email protected] wrote:

`_run_erb_47app47views47posts47index46html46erb’
worked, but then I get session errors because the servlet session
store doesn’t support generate_digest, and I couldn’t get it to just
use cookie_store. Any ideas how I can get this to work?

It seems to be a bug. Would you mind submitting the .war file you
created to an issue in JRuby’s JIRA for further inspection?
http://jira.codehaus.org/browse/JRUBY

I don’t have any ideas at the moment. The application I’m working on
definitely uses named routes and we package it with Warbler and
JRuby-Rack, and we haven’t seen this problem.

Thanks,
/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email