I have a mountable rails engine with Devise. When I copy my migrations and run rake db:migrate in the dummy app it works just fine.
But when I use a new rails app, add my engine to the gem file, copy migrations and run rake db:migrate I get this error "uninitialized constant Devise".
I have this in my routes file:
mount Cms::Engine, :at => '/', :as => 'cms'
What am I doing wrong ?
gem list
from within the project directory, is Devise listed? Also, if you have a development dependency, the gem is only included when you are in development mode. I would dos.add_dependency
instead ofs.add_development_dependency
– Kyle