Connecting to sqlite3

I’m having problems connecting to sqlite3.

Here is what my config file looks like:

development:
adapter: sqlite3
dbfile: /tmp/db/test.db

test:
adapter: sqlite3
dbfile: /tmp/db/test.db

Running migrations causes this error to be thrown:
g4:~/sites/rails/test smtlaissezfaire$ rake migrate
(in /Users/smtlaissezfaire/Sites/rails/test)
rake aborted!
no such file to load – sqlite3

The database exists at /tmp/db/test.db. I can use the sqlite3 command
to view the tables, etc. Could this be an install problem? I’ve
installed sqlite3 with darwinports.

Scott T.

On Sun, Jul 09, 2006, Scott T. wrote:

The database exists at /tmp/db/test.db. I can use the sqlite3 command
to view the tables, etc. Could this be an install problem? I’ve
installed sqlite3 with darwinports.

You also need the sqlite3 gem.

sudo gem install sqlite3-ruby

Ben

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs