Anyone have any success with a JRuby on Rails war deployment and calendar_date_select? The gem wouldn't include the helper functions and I would receive the following error since the function wasn't declared in the app:
任何人都可以使用JRuby on Rails war部署和calendar_date_select取得任何成功吗? gem不会包含辅助函数,因为函数未在应用程序中声明,我会收到以下错误:
undefined method 'calendar_date_select_includes' for #<ActionView::Base:0xbe823>
对于#
After installing calendar_date_select as a plugin, I was able to get it to work in a war file deployment for the development environment. Nevertheless, I'm now receiving the same error with the plugin when the rails environment in the war file is changed to 'production'.
在安装calendar_date_select作为插件之后,我能够让它在开发环境的war文件部署中工作。然而,当war文件中的rails环境变为'production'时,我现在收到与插件相同的错误。
any ideas on which direction to head?
关于朝哪个方向的任何想法?
JRuby: 1.3.0 Rails: 2.3.2 Calendar Date Select : 1.15 Tomcat: 6.0
JRuby:1.3.0 Rails:2。3。2日历日期选择:1.15 Tomcat:6.0
1 个解决方案
#1
I had the same problem and solved it using this patch: http://code.google.com/p/calendardateselect/issues/detail?id=161
我有同样的问题并使用此补丁解决了它:http://code.google.com/p/calendardateselect/issues/detail?id = 161
It's because of calendar_date_select
building a path for /public
using Rails.root
(which, when packaging the app with Warble
is under WEB-INF
).
这是因为calendar_date_select使用Rails.root构建/ public的路径(当使用Warble打包应用程序时,在WEB-INF下)。
#1
I had the same problem and solved it using this patch: http://code.google.com/p/calendardateselect/issues/detail?id=161
我有同样的问题并使用此补丁解决了它:http://code.google.com/p/calendardateselect/issues/detail?id = 161
It's because of calendar_date_select
building a path for /public
using Rails.root
(which, when packaging the app with Warble
is under WEB-INF
).
这是因为calendar_date_select使用Rails.root构建/ public的路径(当使用Warble打包应用程序时,在WEB-INF下)。