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
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
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
3 matches
Mail list logo