ruby on rails - Active job error -


i try run work in background rails 4.2.6 , got error:

uninitialized constant delayed::job     app/controllers/pipls_controller.rb:9:in `research'     

here code:

app/jobs/miner.rb

class miner < activejob::base   queue_as :default    def perform(params)     ...   end end 

app/controllers/pipls_controller.rb

class piplscontroller < applicationcontroller   def research     miner.perform_later(params)     redirect_to pipls_path   end end 

config/application.rb

module db   class application < rails::application     config.active_record.raise_in_transactional_callbacks = true     config.active_job.queue_adapter = :delayed_job   end end 

gemfile

gem 'delayed_job' 

sidekiq , resque not work either.

what do wrong?


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -