hi do you also get many warnings when using Active Record. my code works but I get many warnings: home/markus/writings/ruby-orm$ ./eagle_test.rb /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/class_inheritable_attributes.rb:116: warning: discarding old inherited /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/core_ext/string/../../inflector.rb:6: warning: method redefined; discarding old pluralize /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/core_ext/string/../../inflector.rb:14: warning: method redefined; discarding old singularize /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/core_ext/string/../../inflector.rb:22: warning: method redefined; discarding old camelize /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/core_ext/string/../../inflector.rb:26: warning: method redefined; discarding old underscore /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/core_ext/string/../../inflector.rb:30: warning: method redefined; discarding old humanize /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/core_ext/string/../../inflector.rb:34: warning: method redefined; discarding old demodulize /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/core_ext/string/../../inflector.rb:38: warning: method redefined; discarding old tableize /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/core_ext/string/../../inflector.rb:42: warning: method redefined; discarding old classify /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/core_ext/string/../../inflector.rb:46: warning: method redefined; discarding old foreign_key /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/core_ext/string/../../inflector.rb:51: warning: method redefined; discarding old constantize /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/core_ext/string/../../inflector.rb:58: warning: method redefined; discarding old plural_rules /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/core_ext/string/../../inflector.rb:76: warning: method redefined; discarding old singular_rules /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/clean_logger.rb:7: warning: method redefined; discarding old format_message /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.10.1/lib/active_record/validations.rb:277: warning: `*'' interpreted as argument prefix /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.10.1/lib/active_record/validations.rb:305: warning: `*'' interpreted as argument prefix /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.10.1/lib/active_record/connection_adapters/abstract_adapter.rb:159: warning: method redefined; discarding old default /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.10.1/lib/active_record/connection_adapters/sqlserver_adapter.rb:95: warning: (...) interpreted as grouped expression /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.10.1/lib/active_record/connection_adapters/oci_adapter.rb:58: warning: (...) interpreted asgrouped expression /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.10.1/lib/active_record/connection_adapters/oci_adapter.rb:103: warning: ambiguous first argument; put parentheses or even spaces /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.10.1/lib/active_record/validations.rb:592: warning: instance variable @errors not initialized /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.10.1/lib/active_record/callbacks.rb:337: warning: instance variable @prey not initialized /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.10.1/lib/active_record/callbacks.rb:336: warning: instance variable @prey not initialized /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.10.1/lib/active_record/validations.rb:592: warning: instance variable @errors not initialized /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.10.1/lib/active_record/callbacks.rb:336: warning: instance variable @eagle not initialized the last few seem to be related to my code, but the rest seems not. here is my code: ======================= #!/usr/local/bin/ruby -w require ''rubygems'' require_gem ''activerecord'', ">= 1.10.1" ActiveRecord::Base.establish_connection( :adapter => "mysql", :host => "localhost", :socket => "/tmp/mysql.sock", :username => "root", :password => "secret", :database => "orm_test" ) class Prey < ActiveRecord::Base belongs_to :eagle, :foreign_key => "eagle_id" end class Eagle < ActiveRecord::Base has_many :prey, :class_name => "Prey" end eagle = Eagle.new eagle.german_name = "Steinadler" eagle.english_name = "Golden Eagle" eagle.wingspan = "190 - 230 cm" eagle.save printf "\nID:%s\n", eagle.id prey = Prey.new prey.german_name = "Schneeschuhhase" prey.english_name = "snow hare" prey.eagle_id = eagle.id prey.save ===================== I have the latest version of Rails and of the C base MySQL driver. any ideas if this is entirely my fault if these warnings are "ok" ?? regards Markus ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de