[Rails] Re: Using Mongoid with ActiveRecord and Devise

2012-01-23 Thread Mike Kim
Thanks Neener54, but I think I found the answer. Instead of running: rails g model Blogpost I need to run rails g active_record:model Blogpost and that should generate all the ActiveRecord files, even though I have mongoid installed. However, now I am running into issues with migration and

[Rails] Re: Using Mongoid with ActiveRecord and Devise

2012-01-23 Thread Mike Kim
Okay, I believe this is a bug in Devise. When I generate the User model using: rails g active_record:devise User I get a config/initializers/devise.rb file with the following setting: require 'devise/orm/mongoid' However, if I run rails g active_record:devise User, the setting should

[Rails] Re: Using Mongoid with ActiveRecord

2012-01-22 Thread Neener54
You could just go into the model and change it's inheritance. I've never used mongoid but I think that push comes to shove, simply switching [modeltype] wouldn't be too hard. I'll keep an eye open for you though and see if I can figure it out. On Jan 21, 7:41 pm, Mike Kim