Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby 2.4.1 + Rails: NameError (undefined local variable or method `cookies' #6

Open
wellington1993 opened this issue Aug 3, 2017 · 0 comments

Comments

@wellington1993
Copy link

Ola,

estou tento este problema ou tentar usar a gem em versoes mais atualizadas do ruby e do Rails:

NameError (undefined local variable or method `cookies' for #<GenerateReportController:0x00005581f7796e30>):

/home/wellington/.rbenv/versions/2.5.0-dev/lib/ruby/gems/2.5.0/bundler/gems/prawn_reports-c398eb490ea0/lib/custom_report_controller.rb:31

Resolvi colocando no inicio do custom_report_controller.rb

class ApplicationController < ActionController::API
  include ActionController::Helpers
  include ActionController::Cookies
  include ActionController::MimeResponds
end

No entanto gostaria de um auxilio na homologação da gem nestas versões do ruby e do rails.

Obrigado! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant