From: Thufir Date: 2009-09-30T22:19:32+09:00 Subject: Re: gem install activerecord--adapter On Wed, 30 Sep 2009 02:18:04 +0900, Aldric Giacomoni wrote: > 1) require 'activerecord' ... Why do you have this underscore in there? > 2) Try :adapter => db[:adapter] instead ? I only briefly googled it, once I knew it wasn't a gems problem, and came up with: thufir@ARRAKIS:~/projects/rss$ thufir@ARRAKIS:~/projects/rss$ thufir@ARRAKIS:~/projects/rss$ ruby 9.rb mysql thufir@ARRAKIS:~/projects/rss$ thufir@ARRAKIS:~/projects/rss$ nl 9.rb 1 require 'rubygems' 2 require 'activerecord' 3 require 'feed_tools' 4 require 'yaml' 5 #db = YAML.load_file("database.yml") #how is this different from ::load ? 6 dbconfig = YAML::load(File.open('database.yml')) 7 foo = (dbconfig["development"]["adapter"]) 8 puts foo thufir@ARRAKIS:~/projects/rss$ thufir@ARRAKIS:~/projects/rss$ nl database.yml 1 development: 2 adapter: mysql 3 # adapter: sqlite3 4 host: 127.0.0.1 5 database: rss2mysql 6 username: ruby 7 password: password #err, don't steal my "secret" password thufir@ARRAKIS:~/projects/rss$ thufir@ARRAKIS:~/projects/rss$ So, I'm mostly "there", I'm just a bit unfamiliar with the ?hash? symbol, =>, as well as the :symbol syntax. Thanks for pointing me in the right direction! -Thufir