问题
I tried to follow this tutorial to deploy my jruby app on tomcat, but yet it always ends with:
--- Backtrace
NoMethodError: undefined method `relative_url_root=' for ActionController::Base:Class
send at org/jruby/RubyKernel.java:2097
Tried either with tomcat 6 and 7.
My jruby version is 1.6.5 and I use Rails 3.1 (too fresh perhaps ?)
Thanks for any help
回答1:
We had the same problem, and it was tracked down to the new version jruby-rack (1.1.1 IIRC). We downgraded to 1.0.10 and the problem went away. I'm not sure what the "root" of the problem was though.
来源:https://stackoverflow.com/questions/8151053/nomethoderror-relative-url-root-when-deploying-rails-app-on-tomcat