我们在rails 3应用程序中使用prawn来生成pdf文件。现在,在升级到rails 3.2.8之后,rails插件prawnto出现了一个问题。下面是错误:
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them o
ut and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes
for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at D:/rails_proj/
emclab-failed2/config/environment.rb:5)
DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases,simply use Ruby memoization pattern inst
ead. (called from extend at D:/rails_proj/emclab-failed2/vendor/plugins/prawnto/lib/prawnto/template_handler/compile_support.rb:5)
D:/rails_proj/emclab-failed2/vendor/plugins/prawnto/lib/prawnto/template_handlers/base.rb:3:in `<module:TemplateHandlers>': uninitialized co
nstant ActionView::TemplateHandler (NameError)甚至rails服务器都无法启动。有没有办法解决这个问题?谢谢。
发布于 2012-08-13 22:54:20
对虾是一颗宝石,并不依赖于大虾与rails一起工作。这是一个由aniket编写的在Rails3.2中直接使用对虾的post。我们遵循了说明,它在rails 3.2.8中也能正常工作。如果你有与prawnto相同的兼容问题,请查看它。
https://stackoverflow.com/questions/11926058
复制相似问题