Hi... I am new in this group as in ruby...
My english is bad, i'm from argentina and i need some help:
I'm working in an aplication, and i have a problem with datamapper...
Well, i have a class (i.e. Thing) where I define a method:
def get_other_thing
return OtherThing.all
end
then from other class i create a thing's instance and i send this
message (@thing.get_other_thing) and i get this error:
/usr/lib/ruby/gems/1.8/gems/dm-core-0.9.5/lib/dm-core/repository.rb:
28:in `adapter': Adapter not set: default. Did you forget to setup?
from /usr/lib/ruby/gems/1.8/gems/dm-core-0.9.5/lib/dm-core/
repository.rb:61:in `read_many'
from /usr/lib/ruby/gems/1.8/gems/dm-core-0.9.5/lib/dm-core/model.rb:
232:in `all'
i setup datamapper: DataMapper.setup(:default, 'path-to-the-db')
DataMapper.auto_migrate!
and in the class OtherThing i define the propertys and that stuff...
Can anybody help me?
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---