I am trying to get a simple app working and I'm having problems with
datamapper. I am running on ubuntu 10.04 and I'm new to ruby.
I have installed dm-core (0.10.2) and do_sqlite3 (0.10.2) using gem
install. I have included the full list of installed gems below.
When I run the following code:
require "rubygems"
require "dm-core"
DataMapper.setup(:default, 'sqlite3::memory:')
class Post
include DataMapper::Resource
property :id, Serial
property :title, String
end
Post.auto_migrate!
I get the following error:
/var/lib/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:279:in
`property_schema_statement': undefined method `quote_value' for
#<DataObjects::Sqlite3::Connection:0xb7074b78> (NoMethodError)
from /var/lib/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:
775:in `property_schema_statement'
from /var/lib/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:
759:in `create_table_statement'
from /var/lib/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:
759:in `map'
from /var/lib/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:
759:in `create_table_statement'
from /var/lib/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:
140:in `create_model_storage'
from /var/lib/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/adapters/
data_objects_adapter.rb:269:in `with_connection'
from /var/lib/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:
139:in `create_model_storage'
from /var/lib/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:
1310:in `create_model_storage'
from /var/lib/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:
1405:in `auto_migrate_up!'
from /var/lib/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:
1360:in `auto_migrate!'
from dm_test.rb:13
Any ideas/suggestions appreciated.
Thanks
Neil
=========================================
Output from gem query -L
activerecord (2.3.8)
activesupport (2.3.8)
addressable (2.1.2)
bcrypt-ruby (2.1.2)
builder (2.1.2)
cucumber (0.7.2)
cucumber-rails (0.3.1)
data_objects (0.10.2)
diff-lcs (1.1.2)
dm-core (0.10.2)
do_sqlite3 (0.10.2)
extlib (0.9.15)
fastercsv (1.5.3)
gherkin (1.0.30, 1.0.26)
haml (3.0.4)
json_pure (1.4.3, 1.2.4)
rack (1.1.0)
redcar (0.3.5)
rspec (1.3.0)
rubyzip (0.9.4)
shotgun (0.6)
sinatra (1.0)
sinatras-hat (0.1.2)
stringex (1.1.0)
term-ansicolor (1.0.5)
trollop (1.16.2)
uuidtools (2.1.1)
--
You received this message because you are subscribed to the Google Groups
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en.