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'])
elseResque.enqueue(FusionTableSync)
end
gives the error:
uninitialized constant LocationsController::FusionTableSync
Any ideas?
The trouble was I had not named the worker file correctly. Sometimes convention over configuration can be a pain to debug.
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.
gives the error:
uninitialized constant LocationsController::FusionTableSync
Any ideas?