문제

i am having some trouble with paper_trail gem. I love using it and it has nice features. It works fine when i run my server in development and test environments, but displays "undefined local variable or method `has_paper_trail' " error when i start to run the server in production environment. I couldn't be able to figure it out. help please?

도움이 되었습니까?

해결책 2

thanx vinod, your answer was helpful, but i just solved it by adding production as follows in /config/application.rb

Bundler.require(*Rails.groups(:assets => %w(development test production)))

it works fine.

다른 팁

Check configuration :

If you defined in /config/application.rb like

Bundler.require(*Rails.groups(:assets => %w(development test)))

Change to :

Bundler.require(:default, Rails.env)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top