Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #7023
| Newsgroups | comp.lang.ruby |
|---|---|
| Date | 2014-09-15 15:23 -0700 |
| Message-ID | <cbe5c97f-2c25-493a-8e0a-fe3c86934b7e@googlegroups.com> (permalink) |
| Subject | active_record error |
| From | Melb <melaggouni@gmail.com> |
hi, I am trying to connect to mysql server via active record : require 'rubygems' require 'active_record' ActiveRecord::Base.establish_connection( :adapter => "mysql2", :host => "localhost", :database => "xxxxxxx", :username => "root", :password => "xxxxxxx", :encoding => "utf-8" ) but I am getting error message: /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:131:in `rescue in const_missing': uninitialized constant ActiveRecord::ConnectionAdapters::AbstractAdapter::SchemaCreation (NameError) from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:120:in `const_missing'... I can connect to the server using mysql2 client directly How can I correct this problem regards,
Back to comp.lang.ruby | Previous | Next | Find similar
active_record error Melb <melaggouni@gmail.com> - 2014-09-15 15:23 -0700
csiph-web