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)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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_railsorbundle exec rake?If you want Rails 3.0.x:
Regenerate the application by running
rails new appnameto see what needs to change.