similar to: Error: NameError (uninitialized constant Mysql)

Displaying 20 results from an estimated 4000 matches similar to: "Error: NameError (uninitialized constant Mysql)"

2006 Jul 25
0
RESOLVED: Re: NameError (uninitialized constant Mysql)
Hi all I had asked the group about the error: NameError (uninitialized constant Mysql) appearing on the localhost since last few days. I was using Webrick for testing. I installed RubyForApache module, which installed mysql.so along with that. It wasnt successful even after following documentation/tutorials word-by-word. Anyway, the bottom line is : I uninstalled RubyForApache and
2006 Sep 06
5
admin controller problem
I am reading the agile web development with rails book, and starting to create the depot. I am getting the below error after setting up the "ruby script/generate scaffold Product Admin" does anyone know what the problem is? NameError in AdminController#index uninitialized constant Mysql RAILS_ROOT: ./script/../config/../ Application Trace | Framework Trace | Full Trace
2006 Aug 27
0
problem with mysql gem
Hi. Whenever I use activerecord I get this error NameError: uninitialized constant Mysql. I installed the mysql 2.7 gem and I''m on Rails 1.1.6 / Ruby 1.8.4. The gem was built successfully using ''gem install -- --with-mysql-config=/usr/local/mysql/bin/mysql_config''. Here''s a sample trace of the error in ''script/console'': >> User.find 1
2006 Apr 07
2
minor issue with mysql/ruby - major headache
i hope its minor, i''m running lighty1.4x ruby 1.8x mysql 5.0.1x and i can see my rails app on 127.0.0.1:3000 but if i try run a app with database connection (scaffold) i get this error NameError in Message#index uninitialized constant Mysql RAILS_ROOT: ./config/.. Application Trace | Framework Trace | Full Trace
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
2005 Nov 30
0
uninitialized constant Base (NameError) trying to use ActiveLdap
Hi group I''m trying to hook up my simple app to Active Directory. I''m following instructions posted on the website. Mainly http://wiki.rubyonrails.com/rails/pages/HowtoAuthenticateViaLdap and now also http://wiki.rubyonrails.com/rails/pages/ActiveLDAP. The two instructions seem to differ a little on how to configure (environment.rb). Both instructions break my app with an
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'',
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
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 Feb 10
3
uninitialized constant ActsAsFerret (NameError)
Hi all, I have another problem that I fight with for some time and I could not understand where is the problem. Probably the problem is that I am quite "green" in RR :) I am trying to make the Demo Application that comes with Ferret to work but I guess something with my environment is not OK. I will do apreciate any help. [root at moonlight FerretDemo]# ./script/server => Booting
2006 Aug 17
0
`const_missing'': uninitialized constant
Hi all, still the same error, when accessing my model childs on the site5 server ....(Person.infogroups.first.infoattributes, (a Person has_many infogroup which has_many info_attribute)) I double check my config and the server and it is exactly the same (except for rubygem which is for me 0.8.11). ==>>ERROR
2008 Nov 29
3
Yet another "NameError: uninitialized constant" problem
I''ve searched for information about this and compared what I have to the solutions I can find, here and elsewhere. I found some good and useful information, yet my stuff still doesn''t work. I was hoping somebody here could spot something. I''m using rails 2.1.2 and I''m pretty new to ruby and rails. My goal is a fairly simple many-to-many relationship linking
2005 Oct 27
0
has_one with Single Table Inheritance - NameError : uninitialized constant
I am having a problem with using SIngle Table Inheritance with a has_one relationship, and I am at a loss of what could be causing it. Below is the related code and the error message. class User < ActiveRecord::Base has_one :wishlist end class List < ActiveRecord::Base belongs_to :user end class Wishlist < List has_and_belongs_to_many :items, :class_name =>
2008 Jun 10
1
NameError in AdminController, uninitialized constant
Hi there basically following the "Agile Web Development With Rails, 2nd Edition" i followed the tutorial exaclty, worked fine, so i decided to change one thing on page 74 instead of: ruby script/generate model product i used: ruby script/generate model propertys and: depot_a/db/migrate/001_create_products.rb ~/Rails/ecom/db/migrate$ cat 001_create_propertys.rb class
2006 Jul 28
2
Problems connecting to remote mysql db
Hi, I am having a problem connecting to a remote mysql db and I can''t figure out what the problem is. When I try to connect I get the error: getaddrinfo: no address associated with hostname. I have looked all over for clues as to what that means but I haven''t been able to find anything that helps. I have no problems connecting to the database with php and with the mysql query
2006 Feb 08
2
NameError (uninitialized constant UnknownAction)
Hi, I''m having a strange problem that only seems to be happening on our production server. I never get this error locally but get it quite often on the server. The other odd thing is it doesn''t seem to be resulting in any error pages on the site. Everything looks fine... I wanted to add a rescue_action_in_public to email me when there are errors. So I followed the
2010 Dec 08
1
configuration issue (Uninitialized constant Aftimagr (NameError) )
Hello All I am getting this error, any one resolved this..... it''s urgent ruby script/server --debugger => Booting WEBrick... => Debugger enabled config.gem: Unpacked gem rspec-rails-1.1.11 in vendor/gems has no specification file. Run ''rake gems:refresh_specs'' to fix this. config.gem: Unpacked gem rubyist-aasm-2.0.2 in vendor/gems has no specification file. Run
2006 Feb 02
4
uninitialized constant Test (NameError)
I have three Rails apps on my laptop. Two can runs tests just fine. The third generates this error when I try to run any tests: > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/ > active_support/dependencies.rb:200:in `const_missing'': > uninitialized constant Test (NameError) > from ./test/unit/../test_helper.rb:5 > from
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