ankane / searchjoy

Search analytics made easy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`method_missing': undefined method `assets' for #<Rails::Application::Configuration:0x00007fc2af60afd0> (NoMethodError)

kevin-jj opened this issue · comments

It does not work if a rails project is created with --skip-sprockets. @ankane

1: from /Users/xxx/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/searchjoy-0.4.1/lib/searchjoy/engine.rb:7:in `block in <class:Engine>'

/Users/xxxx/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/railtie/configuration.rb:97:in `method_missing': undefined method `assets' for #<Rails::Application::Configuration:0x00007fc2af60afd0> (NoMethodError)

Hey @kevin-jj, Searchjoy uses Sprockets for assets, so it won't work with that option.

It work well after I uncomment require "sprockets/railtie" in config/application.rb

ezoic increase your site revenue