RailsCasts Pro episodes are now free!

Learn more or hide this

Chris P's Profile

GitHub User: kprzywara

Comments by Chris P

Avatar

never mind on the previous error. i just had a reference to include a file which didnt exist. I removed the include.

I have another issue though

I am using Resque.enqueue_to(queue_name, ClassName, params) and I get this error:

wrong argument type Class (expected Module)

my class file has this:
class MyClass
def self.perform(parameters, item_id)

etc

Avatar

Hi - I cannot run the rake task and I cannot find much on the internet that can assist me with resolving this. it fails loading this file which I dont have.. any ideas would be appreciated

admin$ QUEUE=* rake resque:work --trace
** Invoke resque:work (first_time)
** Invoke resque:preload (first_time)
** Invoke resque:setup (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute resque:setup
** Execute resque:preload
rake aborted!
LoadError: No such file to load -- helpers
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in require'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in
block in require'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:230:in block in load_dependency'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:633:in
new_constants_in'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:230:in load_dependency'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in
require'
/Users/admin/sites/extendity/app/controllers/account_controller.rb:1:in <top (required)>'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in
load'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in block in load_file'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:633:in
new_constants_in'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:442:in load_file'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:342:in
require_or_load'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:307:in depend_on'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:225:in
require_dependency'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/railties-4.1.4/lib/rails/engine.rb:468:in block (2 levels) in eager_load!'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/railties-4.1.4/lib/rails/engine.rb:467:in
each'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/railties-4.1.4/lib/rails/engine.rb:467:in block in eager_load!'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/railties-4.1.4/lib/rails/engine.rb:465:in
each'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/railties-4.1.4/lib/rails/engine.rb:465:in eager_load!'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/resque-1.25.2/lib/resque/tasks.rb:61:in
block (2 levels) in '
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:240:in call'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:240:in
block in execute'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:235:in each'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:235:in
execute'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:179:in block in invoke_with_call_chain'
/Users/admin/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/monitor.rb:211:in
mon_synchronize'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:172:in invoke_with_call_chain'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:201:in
block in invoke_prerequisites'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:199:in each'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:199:in
invoke_prerequisites'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:178:in block in invoke_with_call_chain'
/Users/admin/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/monitor.rb:211:in
mon_synchronize'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:172:in invoke_with_call_chain'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:165:in
invoke'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:150:in invoke_task'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:106:in
block (2 levels) in top_level'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:106:in each'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:106:in
block in top_level'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:115:in run_with_threads'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:100:in
top_level'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:78:in block in run'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:176:in
standard_exception_handling'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:75:in run'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/bin/rake:33:in
'
/Users/admin/.rvm/gems/ruby-2.1.2/bin/rake:23:in load'
/Users/admin/.rvm/gems/ruby-2.1.2/bin/rake:23:in
'
Tasks: TOP => resque:work => resque:preload