similar to: RESOLVED: Re: NameError (uninitialized constant Mysql)

Displaying 20 results from an estimated 6000 matches similar to: "RESOLVED: Re: NameError (uninitialized constant Mysql)"

2006 Jul 24
0
Error: NameError (uninitialized constant Mysql)
Hi I am getting this error on my localhost in a project I started work on. It was working properly until sometime back. I am not what broke this because I had to do some copy paste from some other project to make it deploy on site5. NameError (uninitialized constant Mysql): d:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing''
2006 May 02
3
''NameError: uninitialized constant <MyEntity>'' in console
When I create a new model entity, and try to access it from the Rails console I get the error: >> b = Bar.new(:name => ''Some Bar'') NameError: uninitialized constant Bar from (irb):1 from :0 (My model class is called Bar, and is in file app/models/bar.rb) So, I try to load the model class file, and I run into a more frigtening error: >> load
2006 Jul 03
3
Sharing Session Between Two Applications
Hi We have a rails application deployed and working fine. Along with this, we are planning to add "Opinion" forum. The url of the forum will be like http://forum.mymainsite.com Is it possible to share the session (that is, if the user is already logged in on the main site, he need not log in again on the forum section). Is it possible to add the ''opinion'' as a
2006 Nov 06
1
NameError uninitialized constant Ferret::Index::FieldInfos
Hi Everyone, I''ve a RoR application. I am trying to build full text search capability into it. I installed Ferret. After that I installed the act_as_ferret plugin. I''ve also put the acts_as_ferret inside the <model>.rb file . I''m using the find_by_contents to get the search results. I''m getting the following error. I''ve no clue and I
2006 Feb 07
1
AWDWR: NameError (uninitialized constant UnknownAction) in rescue_action_in_public
I copied (and modified) this code from AWDWR: def rescue_action_in_public(exception) case exception when ActiveRecord::RecordNotFound, ActionController::UnknownAction render :template=>''/error'', :layout=>''application'', :status=>''404 Not Found'' else render :template=>''/error'',
2009 Apr 15
1
uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
I''m on debian etch w/ ruby1.8, activesupport-2.3.2, getting this on the first line of code which is require ''active_support'' : /var/lib/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:55: uninitialized constant ActiveSupport::Dependencies::Mutex (NameError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require''
2009 Mar 18
1
uninitialized constant ActionController::AbstractRequest (NameError) with rails 2.3
Hi guys, I''ve just installed Rails 2.3 and I am using the clearance plugin with cucumber features. When I run rake features I get this "uninitialized constant ActionController::AbstractRequest (NameError)" error from webrat trying to call AbstractRequest which now is called Request (I think). My question is : Is there any way to alias the old name to have backwards
2011 May 17
1
uninitialized constant Delayed::Job (NameError)
hi I am implementing delayed_job in my rails app. *my code is:* file name is: my_worker.rb require "delayed_job" require "rubygems" class MyClass def perform while true do puts "I am in My class!!!" sleep 2 end end end Delayed::Job.enqueue( MyClass.new ) #m.perform when i am executing this(ruby my_worker.rb ) file it gives me error
2010 Sep 21
1
NameError: uninitialized constant Dispatch
In the "Rails Way" book, following an example, I came to a point where I had to run: Dispatch.dispatch But, I get the following: irb(main):003:0> Dispatch.dispatch NameError: uninitialized constant Dispatch from (irb):3 I want to mention that I''m using "Rails 3.0.0", and the book seems to use an older version of Rails, is that the issue? What is the
2008 May 19
0
uninitialized constant BackgrounDRb::MetaWorker (NameError)
Hi All, I am using backgroundrb to receive emails in my rails app. But I am unable to start the Backgroundrb server. After doing this: $ ./script/backgroundrb/start I am getting following error: ??????????????????????????????? vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:263:in `load_missing_constant'': uninitialized constant
2009 Jan 23
0
NameError: uninitialized constant I18n
Just installed the plugin as described on the link below. http://factore.ca/on-the-floor/11-introducing-has-foreign-language-an-easy-database-internationalization-plugin If i fire up my console and then: I18n.default_locale = "en" i got the error message: NameError: uninitialized constant I18n from
2008 Feb 09
0
Error const_missing': uninitialized constant Rails::Plugin::Err (NameError)
I have installed some plug ins like will_paginate and classic_pagination. After this I have came across this error /var/lib/gems/1.8/gems/activesupport-2.0.1/lib/active_support/ dependencies.rb:478:in `const_missing'': uninitialized constant Rails::Plugin::Err (NameError) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2009 May 04
0
uninitialized constant Article::Text (NameError)
uninitialized constant Article::Text (NameError) when i exute the program i am getting this err can any one give me the solution for this
2009 May 12
0
`load_missing_constant': uninitialized constant Rails::Generator (NameError)
Hello, I''m probably missing something pretty basic here as a rails newbie but I''m trying to write a plugin and I am trying to get my generator to work. I am trying to call the manifest method in my vendor/plugins/media_module/generators/media_module_generator.rb from my vendor/plugins/media_module/init.rb. here''s the code in vendor/plugins/media_module/init.rb:
2010 Dec 06
0
Rspec: `should': uninitialized constant RSpec::Expectations (NameError)
Hi all, tried posting this to rspec group but w/o success so hope someone on this list might be able to help me out as am kind of stuck: Can anyone tell me why I am getting this error trying to ''rake spec'': ''kernel.rb:27:in `should'': uninitialized constant RSpec::Expectations (NameError)''. Can''t seem to find a useful reference online to
2012 Feb 18
0
Rails NameError : uninitialized constant RelationshipsController
I am trying to run a test of my app buy my relationships_controller_spec.rb file won''t run. Here''s the error I get: Exception encountered: #<NameError: uninitialized constant RelationshipsController> Here''s the code for my relationships_controller_spec.rb file: require ''spec_helper'' describe RelationshipsController do describe "access
2007 Aug 10
2
uninitialized constant MiniMagic (NameError)
Hi, Mini-Magick breaking. I have installed mini-magick gem. Here is my sample program require ''rubygems'' gem ''mini_magick'' include minimagick image = MiniMagick::Image.from_file(''./fun.jpg'') image.resize "100x100" image.write(''./funthumb.jpg'') Output: test.rb:3: undefined local variable or method
2006 Feb 19
0
uninitialized constant (NameError)
Anyone knows why Test #1 works, but not Test #2 Test #1 ======= require ''contact/company'' require ''contact/company_office'' def main @companies = Contact::Company.find(:all, :include=>[''company_office''], :limit=>20) end main Test #2 ======= require ''contact/company''
2009 May 25
0
NameError (uninitialized constant FileColumn::Magick::ImageList
Hi, I have been using RMagick and File Column in my app together without a problem, but when I tried to add in some new functionality in my model where I use file_column, I got the error in the subject line. The offending line in my code is: image = Magick::ImageList.new(path_to_image) Has anybody ever seen this problem when using the two libraries together? I have tried adding in a require
2010 May 17
0
ActiveResource 3 on MRI 191: NameError (uninitialized constant Builder::XmlBase::Symbol)
We''ve run into this before and, in this particular project, I''m positive we had a hack somewhere to get AR to work but it seems to have gone missing and I''m not finding any hints in git history or Google. Any call to an AR.create will trigger it. Seems like a strategically placed require or include did the trick but I''m probably misremembering. The offending