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