Rails::Initializer.run do |config|
config.gem 'mongo_mapper'
config.frameworks -= [:active_record]
end
and the following config/initializers/database.rb file:
include MongoMapper
MongoMapper.database = "addressbook-#{Rails.env}"
# Handle passenger forking.
if defined?(PhusionPassenger)
PhusionPassenger.on_event(:starting_worker_process) do |forked|
MongoMapper.database.connect_to_master if forked
end
end
I also removed the config/database.yml file.
Do you have any suggestions on what I'm doing wrong?
jnunemaker
unread,
Nov 18, 2009, 4:44:47 PM11/18/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MongoMapper
The model generators don't work if you remove active record framework.
You have to add the framework back in or just not use the generators
for now.
Aron Pilhofer
unread,
Nov 22, 2009, 10:53:34 AM11/22/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message