Hi, friends!

I'm using Rails 3.0.3 and Postgresql. I'm having some problems with
the documentation. In the subtitle "Require it in your application",
It doesn't say where to put the lines:
   require 'rubygems
   require 'dm-core'

I put them in the config/application.rb, but I'm not sure whether it
is correct.
In the subtitle "Specify your database connection" there is no tip
where to put the line:
    DataMapper::Logger.new($stdout, :debug)

Nor:

    DataMapper.setup(:default, 'postgres://localhost/
the_database_name')

This last line would be the path specified in the file
postgresql.conf, where I have:
     data_directory = '/var/lib/postgresql/8.4/main' plus the name of
the database.

But for some strange reason, this directory is empty!

Any help will be very appreciated.
Thanks in advance!

-- 
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.

Reply via email to