Skip to content

Instantly share code, notes, and snippets.

@gabeodess
Created September 25, 2014 14:36
Show Gist options
  • Select an option

  • Save gabeodess/ce841d64a450e04cca13 to your computer and use it in GitHub Desktop.

Select an option

Save gabeodess/ce841d64a450e04cca13 to your computer and use it in GitHub Desktop.
Thread:: superclass on my controller not found
class Queue::CompetitorsController < ApplicationController
end
When I visit "/queue/competitors" I get the following error:
uninitialized constant Thread::Queue::CompetitorsController
with a list of all my routes including this one:
queue_competitors_path GET /queue/competitors(.:format) queue/competitors#index
namespace :queue do
resources :competitors, :only => [:index, :new, :create, :destroy]
end
@gabeodess
Copy link
Author

Okay, changing Queue to MyQueue seems to have fixed the problem. I guess Queue is already defined somewhere in the rails stack creating some kind of conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment