Questions tagged [uninitialized-constant]
104 questions
2
votes
1 answer
Rails3: Routing Error uninitialized constant SiteConfiguration
I know this has been asked before and I have found many questions that are similar to mine but ever where the answer seems to be the same 'a typo', but I've looked at my code time and time again and can't point the error/typo out, I'm beginning to…

Umer Hassam
- 1,332
- 5
- 23
- 42
2
votes
1 answer
Rails uninitialized constant error on heroku, twitter api, works fine locally
I have a basic twitter api app in rails, which works perfectally locally, however when I pushed to Heroku it doesn't work and upon checking the logs there is an error saying uninitialized constant WelcomeController::TwitterApi. I can not find out…

sdawes
- 631
- 1
- 7
- 15
2
votes
1 answer
Routing Error - uninitialized constant Users::RegistrationsController
I have started on a web application for user registration etc. using devise gem. I am novice to Ruby/Rails env. So this is part of my training.
My question is very similar to an old posting @ devise overriding registrations controller -…

joship
- 21
- 1
- 4
2
votes
1 answer
Rails Polymorphic Associations Uninitialized Constant Error
Been working on debugging this for a few hours and still can't find the solution. When I send a PUT request that calls @transaction.save in the update method of my Transaction Controller, my server log spits out:
NameError - uninitialized constant…

Adam Berman
- 784
- 5
- 16
2
votes
2 answers
Why is irb returning NameError: uninitialized constant for all objects in the database?
I am half way through building a Q&A app and I have successfully seeded my database and can see that objects have been created both in my browser and in the server logs and previously in irb. Now when I went to try to inspect an object in irb, for…

Valerie Mettler
- 475
- 4
- 16
2
votes
3 answers
Unbelievable issue with resque - uninitialized constant MyWorker
I'm running into an extremely strange bug with Resque.
I got 5 workers running, with one queue, waiting for jobs.
I got 1 type of Resque worker : MediaAnalyzer
And here is the strangest thing in the world : sometimes (yeah, SOMETIMES), resque…

PofMagicfingers
- 215
- 2
- 14
2
votes
2 answers
uninitialized constant SessionsController in API
I'm writing an API and am trying to login with the API and am getting uninitialized constant SessionsController error followed by the tip to "Try running rake routes for more information on available routes." when I try to go to the URL…

Arel
- 3,888
- 6
- 37
- 91
2
votes
1 answer
Devise 3.0.0rc custom attributes and strong parameters in Rails 4
I used this solution based on devise_parameter_sanitizer to set some custom attributes to my Devise (User) model and make them available at sign_up and edit forms.
Everything works fine but from time to time (and it happens pretty often)…

jdscosta91
- 706
- 1
- 8
- 16
2
votes
1 answer
NameError in UsersController#show
I am currently working on the Ruby on Rails tutorial by Michael Hartl. I am trying to add a page for each user in my database by creating an HTML with embedded ruby page in the views directory. The code for show.html.erb is below:
<%= @user.name…

Nyce37
- 35
- 1
- 5
2
votes
1 answer
NameError in Rails 3
So I'm trying out the Public Activity gem for a notification timeline and I don't understand why I'm getting the NameError , uninitialized constant message.
Here's the error I'm getting:
NameError in ActivitiesController#index
uninitialized constant…

Pau
- 55
- 1
- 3
- 7
2
votes
1 answer
ManagedCuda and __constant__ variables
I am using ManagedCuda in C#, and I have one question that I can't find an answer to... maybe you can help me. I was reading that in C++ and CUDA you can declare a variable (which is an array) like:
__constant__ double myVar[X]; (this is supossed to…

figus
- 307
- 2
- 15
1
vote
1 answer
Rails 3.2, nested resource, uninitialized constant
I'm having a problem with Rails 3.2.1, a nested resource keeps complaining about an uninitialized constant, I can't figure out why because to me it seems I've done the same as with a different model where this did work. At some point I thought I…

Berggeit
- 253
- 1
- 2
- 11
1
vote
2 answers
rails generate devise:views NameError: uninitialized constant View
I have followed the #209 tutorial of railscast http://railscasts.com/episodes/209-introducing-devise?view=asciicast. It was working good until I tried to generate the devise views to customize it (tutorial #210 of railscast)
I did :
rails generate…

matthughs
- 37
- 1
- 6
1
vote
1 answer
Grape api (rails) - uninitialized constant Endpoints::TodoAPI (NameError)
I'm using grape to create an api in rails. The project is still pretty fresh but I've hit a blocking point so far with my routes.
I added an test endpoint to see if my versions were working together and they were
my config/routes.rb…

David
- 13
- 2
1
vote
1 answer
NameError uninitialized constant in Jruy/Rails 3
I'm upgrading a project to Rails 3.1 and Jruby 1.6.4 from rails 2.6 I followed the Rails Handbook by Jeremy.
Now I'm getting some errors while booting the server.
NameError in Adm::AuthController#login
uninitialized constant…

Jay
- 322
- 1
- 6
- 21