On Tue, 6 Jan 2009 06:26:41 -0800 (PST) Jenny <[email protected]> wrote:
> > I was having some issues with Datamapper trying to find a file called > _adapter, which didn't exist. > > This post: > http://groups.google.com/group/datamapper/browse_thread/thread/d3d21fd2a066581 > led me in the right direction, mentioning a difference in syntax that > should take care of the problem (:adapter: syntax instead of adapter:) > > However, now my code has new an exciting errors: > > --- > # This is a sample database file for the DataMapper ORM > :development: &defaults > # These are the settings for repository :default > :adapter: sqlite3 > :database: db/vodswap_development.db > > :test: > > :database: db/vodswap_test.db > > :production: > :database: db/vodswap_production.db > > > --- > > the above code produces the following error when I try to rake > dm:migrate > > rake aborted! > +uri_or_options+ should be Addressable::URI or Hash or String, but was > NilClass > > This one seems absolutely nonsensical to me...which probably means I'm > doing something nonsensical ^_^;; Any insight would be appreciated. > -Jenny > > Hi Jenny In what context are you running this code? A merb application or something else? If it is a merb application, you might need to add a rake environment to the database.yml If it isn't, then a pastie/gist of the relevant code would help to give pointers Regards, Jon --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
