Question : Error during initial Ruby on Rails db rake

I create a new project in NetBeans, specifying that I want to use SQLite3 for my database. I then try to run a db migrate task on the project, and I get the following error:

C:/Program Files/NetBeans 6.0 RC1/ruby1/jruby-1.0.2/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1-mswin32/lib/sqlite3_api.so:0: Invalid char `\220' in expression

I have the sqlite3 gem installed using the NetBeans interface.

The following code is in the database.yml file:
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
# SQLite version 3.x
#   gem install sqlite3-ruby
development:
  adapter: sqlite3
  database: db/development.sqlite3
  timeout: 5000
 
# Warning: The database defined as 'test' will be erased and
# re-generated from your development database when you run 'rake'.
# Do not set this db to the same as development or production.
test:
  adapter: sqlite3
  database: db/test.sqlite3
  timeout: 5000
 
production:
  adapter: sqlite3
  database: db/production.sqlite3
  timeout: 5000
Open in New Window Select All

Answer : Error during initial Ruby on Rails db rake

In an effort to help, I tried working through a few examples and did some research... It looks like a few folks have had success with database references like this:

database: db/test_abc.sqlite.db (as opposed to db/test.sqlite3)

Here's an example I found like this: http://wiki.radiantcms.org/Database_Configuration

Maybe that'll help?

Let me know -- or, if you've already figured this one out, let us know!

Thanks and regards,
Phil / peh803
Random Solutions  
 
programming4us programming4us