On Feb 28, 8:06 am, LuisRuby <[email protected]> wrote: > 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' the dm-rails integration handles this for you. In your Gemfile:
gem 'dm-rails' > > 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') Once again, all handled by the dm-rails gem. See https://github.com/datamapper/dm-rails > > 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! This would be unrelated to datamapper. Not sure how you installed postgres, but is it working outside of rails? You may need to use initdb to set up the data directory. Cheers, Xavier -- 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.
