Engine & devise all configured. https://github.com/CoastDigitalGroup/cdg-subengine Example Starter

Multi-Tenant Engine with Devise pass rspec tests.
https://github.com/CoastDigitalGroup/cdg-subengine

https://github.com/CoastDigitalGroup/cdg-subengine

Example Starter App https://github.com/CoastDigitalGroup/cdg-substarter

Soon as I install the engine in the starterapp gemfile, I get NameError:
uninitialized constant User on almost every rake command. Do I need to
somehow setup devise on the starter app initially, than try and setup
the
rails engine? Says invoke ??? (first_time) on different items.

I’ve also re-generated the devise install after gem update but engine
seems
to still pass all rspec tests.

** Invoke routes (first_time)** Invoke environment (first_time)**
Execute environment
rake aborted!NameError: uninitialized constant
User/home/nitrous/code/cdg-substarter/.bundle/bundler/gems/cdg-subengine-2af76555ad4c/app/models/subengine/user.rb:26:in
<module:Subengine>' /home/nitrous/code/cdg-substarter/.bundle/bundler/gems/cdg-subengine-2af76555ad4c/app/models/subengine/user.rb:25:in<top (required)>’
/home/nitrous/code/cdg-substarter/.bundle/gems/activesupport-4.2.3/lib/active_support/inflector/methods.rb:263:in
const_get'/home/nitrous/code/cdg-substarter/.bundle/gems/activesupport-4.2.3/lib/active_support/inflector/methods.rb:263:inblock in constantize’
/home/nitrous/code/cdg-substarter/.bundle/gems/activesupport-4.2.3/lib/active_support/inflector/methods.rb:259:in
each' /home/nitrous/code/cdg-substarter/.bundle/gems/activesupport-4.2.3/lib/active_support/inflector/methods.rb:259:ininject’/home/nitrous/code/cdg-substarter/.bundle/gems/activesupport-4.2.3/lib/active_support/inflector/methods.rb:259:in
constantize' /home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise.rb:290:inget’
/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise/mapping.rb:81:in
to'/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise/mapping.rb:76:inmodules’
/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise/mapping.rb:93:in
routes' /home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise/mapping.rb:160:indefault_used_route’/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise/mapping.rb:70:in
initialize' /home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise.rb:324:innew’
/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise.rb:324:in
add_mapping'/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise/rails/routes.rb:224:inblock in devise_for’
/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise/rails/routes.rb:223:in
each' /home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise/rails/routes.rb:223:indevise_for’/home/nitrous/code/cdg-substarter/.bundle/bundler/gems/cdg-subengine-2af76555ad4c/config/routes.rb:17:in
block in <top (required)>' /home/nitrous/code/cdg-substarter/.bundle/gems/actionpack-4.2.3/lib/action_dispatch/routing/mapper.rb:601:ininstance_exec’
/home/nitrous/code/cdg-substarter/.bundle/gems/actionpack-4.2.3/lib/action_dispatch/routing/mapper.rb:601:in
block in with_default_scope'/home/nitrous/code/cdg-substarter/.bundle/gems/actionpack-4.2.3/lib/action_dispatch/routing/mapper.rb:816:inscope’
/home/nitrous/code/cdg-substarter/.bundle/gems/actionpack-4.2.3/lib/action_dispatch/routing/mapper.rb:600:in
with_default_scope' /home/nitrous/code/cdg-substarter/.bundle/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:432:ineval_block’/home/nitrous/code/cdg-substarter/.bundle/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:412:in
draw' /home/nitrous/code/cdg-substarter/.bundle/bundler/gems/cdg-subengine-2af76555ad4c/config/routes.rb:3:in<top (required)>’
/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:40:in
block in load_paths'/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:40:ineach’
/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:40:in
load_paths' /home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:16:inreload!’/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:26:in
block in updater' /home/nitrous/code/cdg-substarter/.bundle/gems/activesupport-4.2.3/lib/active_support/file_update_checker.rb:75:incall’
/home/nitrous/code/cdg-substarter/.bundle/gems/activesupport-4.2.3/lib/active_support/file_update_checker.rb:75:in
execute'/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:27:inupdater’
/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:7:in
execute_if_updated' /home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application/finisher.rb:69:inblock in
module:Finisher’/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/initializable.rb:30:in
instance_exec' /home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/initializable.rb:30:inrun’
/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/initializable.rb:55:in
block in run_initializers'/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:226:inblock in tsort_each’
/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:348:in
block (2 levels) in each_strongly_connected_component' /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:427:ineach_strongly_connected_component_from’/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:347:in
block in each_strongly_connected_component' /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:345:ineach’
/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:345:in
call'/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:345:ineach_strongly_connected_component’
/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:224:in
tsort_each' /usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:205:intsort_each’/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/initializable.rb:54:in
run_initializers' /home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application.rb:352:ininitialize!’
/home/nitrous/code/cdg-substarter/config/environment.rb:5:in <top (required)>'/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application.rb:328:inrequire_environment!’
/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application.rb:457:in
block in run_tasks_blocks' /home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:240:incall’/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:240:in
block in execute' /home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:235:ineach’
/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:235:in
execute'/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:179:inblock in invoke_with_call_chain’
/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/monitor.rb:211:in
mon_synchronize' /home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:172:ininvoke_with_call_chain’/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:201:in
block in invoke_prerequisites' /home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:199:ineach’
/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:199:in
invoke_prerequisites'/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:178:inblock in invoke_with_call_chain’
/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/monitor.rb:211:in
mon_synchronize' /home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:172:ininvoke_with_call_chain’/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:165:in
invoke' /home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:150:ininvoke_task’
/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:106:in
block (2 levels) in top_level'/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:106:ineach’
/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:106:in
block in top_level' /home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:115:inrun_with_threads’/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:100:in
top_level' /home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:78:inblock in run’
/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:176:in
standard_exception_handling'/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:75:inrun’
/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/bin/rake:33:in
<top (required)>' .bundle/binstubs/rake:16:inload’.bundle/binstubs/rake:16:in `’
Tasks: TOP => routes => environment

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs