RailsCasts Pro episodes are now free!

Learn more or hide this

RussellSnow's Profile

GitHub User: RussellSnow

Comments by

Avatar

The trouble was I had not named the worker file correctly. Sometimes convention over configuration can be a pain to debug.

Avatar

I added a task just like shown and it works great. So I needed another and it refuses to recognize the second one. The first call to Rescue works but the second barf because it thinks it a member of the model. It will not add a second queue, nor will it work if I put it in the first one.

ruby
    if params[:commit] == "Upload File"
      Resque.enqueue(Import360,params[:file].tempfile.path,current_user.id, cookies['Neighborhood'],cookies['Storm'],cookies['Company'])
    else
      Resque.enqueue(FusionTableSync)
    end 

gives the error:
uninitialized constant LocationsController::FusionTableSync
Any ideas?