Error while using PDF Kit

旧巷老猫 提交于 2019-12-10 23:10:05

问题


I am trying to use PDFKit using rails 3, I followed the railscast tutorial and found that I get the following error:

: undefined method `wrap_parameters' for ActionController::Base:Class (NoMethodError)

http://railscasts.com/episodes/220-pdfkit


回答1:


Maybe you're accidentally loading Rails 3.0.x on a Rails 3.1 application?

It won't work if you generate a Rails 3.1 application, which adds config/initializers/wrap_parameters.rb, and then try to boot it with Rails 3.0.x.

If you want Rails 3.1: Are you running with bundler, e.g. bundle exec unicorn_rails or bundle exec rake?

If you want Rails 3.0.x: Regenerate the application by running rails new appname to see what needs to change.



来源:https://stackoverflow.com/questions/6677352/error-while-using-pdf-kit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!