hello I am new to rails and want to learn Active Record. I installed everything as a gem and tried to run the examples. I changed the shared_setup.rb so I can connect to MySQL. but then I get an error: ruby associations.rb ./../lib/active_record/base.rb:221: uninitialized constant ActiveRecord::Base::ClassInheritableAttributes (NameError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' from ./../lib/active_record.rb:35 from ./shared_setup.rb:5:in `require'' from ./shared_setup.rb:5 from associations.rb:1:in `require'' from associations.rb:1 does anybody know what''s wrong here ? regards Markus ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
Markus Jais wrote:> hello > > I am new to rails and want to learn Active Record. > I installed everything as a gem and tried to run the > examples. I changed the shared_setup.rb so I can > connect to MySQL. > but then I get an error: > > ruby associations.rb > ./../lib/active_record/base.rb:221: uninitialized > constant > ActiveRecord::Base::ClassInheritableAttributes > (NameError) > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require__'' > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require'' > from ./../lib/active_record.rb:35 > from ./shared_setup.rb:5:in `require'' > from ./shared_setup.rb:5 > from associations.rb:1:in `require'' > from associations.rb:1 > > > does anybody know what''s wrong here ? > > regards > > MarkusIt might help to post what you changed shared_setup.rb to and verify that you did, in fact, create the database you refer to in your change (sorry if that seems to imply that you''re stupid but... you never know). :-) craig
--- craig duncan <craig-duncan-ihVZJaRskl1bRRN4PJnoQQ@public.gmane.org> wrote:> Markus Jais wrote: > > hello > > > > I am new to rails and want to learn Active Record. > > I installed everything as a gem and tried to run > the > > examples. I changed the shared_setup.rb so I can > > connect to MySQL. > > but then I get an error: > > > > ruby associations.rb > > ./../lib/active_record/base.rb:221: uninitialized > > constant > > ActiveRecord::Base::ClassInheritableAttributes > > (NameError) > > from > > >/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in> > `require__'' > > from > > >/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in> > `require'' > > from ./../lib/active_record.rb:35 > > from ./shared_setup.rb:5:in `require'' > > from ./shared_setup.rb:5 > > from associations.rb:1:in `require'' > > from associations.rb:1 > > > > > > does anybody know what''s wrong here ? > > > > regards > > > > Markus > > It might help to post what you changed > shared_setup.rb to and verify that you did, in > fact, create the database you refer to in your > change (sorry if that seems to imply > that you''re stupid but... you never know). :-) > > craig >hi all I changed was the password for the mysql root user. and the database I created is called activerecord_examples. Maybe there is something wrong with my installation. but I can not figure out what. regards Markus ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de