首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PDF prawnto不能与rails 3.2.8一起使用

PDF prawnto不能与rails 3.2.8一起使用
EN

Stack Overflow用户
提问于 2012-08-13 05:34:09
回答 1查看 2K关注 0票数 1

我们在rails 3应用程序中使用prawn来生成pdf文件。现在,在升级到rails 3.2.8之后,rails插件prawnto出现了一个问题。下面是错误:

代码语言:javascript
复制
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服务器都无法启动。有没有办法解决这个问题?谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-08-13 22:54:20

对虾是一颗宝石,并不依赖于大虾与rails一起工作。这是一个由aniket编写的在Rails3.2中直接使用对虾的post。我们遵循了说明,它在rails 3.2.8中也能正常工作。如果你有与prawnto相同的兼容问题,请查看它。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11926058

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档