small medium large xlarge

Dmfcb_pragsmall
16 Jul 2017, 16:11
David Copeland (480 posts)

This is impossible to diagnose without seeing the code and knowing what you were doing that caused this.

Can you post a link to your code somewhere, e.g. GitHub?

Dave

Generic-user-small
16 Jul 2017, 23:38
Magnus Nnamdi (2 posts)

Hi Dave, Chapter 1 page 6: create dashboard/index.html.erb I followed the steps and when I reboot my server I got the following error:

mag:liveshine user$ bundle exec rails server => Booting Puma => Rails 5.1.2 application starting in development on http://localhost:3000 => Run rails server -h for more startup options Puma starting in single mode… * Version 3.9.1 (ruby 2.4.1-p111), codename: Private Caller * Min threads: 5, max threads: 5 * Environment: development * Listening on tcp://0.0.0.0:3000 Use Ctrl-C to stop Started GET “/” for 127.0.0.1 at 2017-07-17 08:30:41 +0900

TypeError (superclass must be a Class (Module given)):

app/controllers/application_controller.rb:1:in <top (required)>' app/controllers/dashboard_controller.rb:1:in <top (required)>’ Error during failsafe response: superclass must be a Class (Module given) /Users/user/Desktop/RAPB-2/liveshine/app/controllers/application_controller.rb:1:in <top (required)>' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:476:in load’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:476:in block in load_file' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:661:in new_constants_in’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:475:in load_file' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:374:in block in require_or_load’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:36:in block in load_interlock' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies/interlock.rb:12:in block in loading’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/concurrency/share_lock.rb:149:in exclusive' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies/interlock.rb:11:in loading’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:36:in load_interlock' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:357:in require_or_load’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:510:in load_missing_constant' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:202:in const_missing’ /Users/user/Desktop/RAPB-2/liveshine/app/controllers/dashboard_controller.rb:1:in <top (required)>' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:476:in load’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:476:in block in load_file' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:661:in new_constants_in’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:475:in load_file' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:374:in block in require_or_load’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:36:in block in load_interlock' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies/interlock.rb:12:in block in loading’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/concurrency/share_lock.rb:149:in exclusive' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies/interlock.rb:11:in loading’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:36:in load_interlock' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:357:in require_or_load’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:510:in load_missing_constant' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:202:in const_missing’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/inflector/methods.rb:269:in const_get' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/inflector/methods.rb:269:in block in constantize’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/inflector/methods.rb:267:in each' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/inflector/methods.rb:267:in inject’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/inflector/methods.rb:267:in constantize' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:582:in get’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:613:in constantize' /Users/user/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.2/lib/action_dispatch/http/request.rb:82:in controller_class’ /Users/user/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.2/lib/action_dispatch/http/parameters.rb:97:in binary_params_for?' /Users/user/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.2/lib/action_dispatch/http/parameters.rb:88:in set_binary_encoding’ /Users/user/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.2/lib/action_dispatch/http/parameters.rb:58:in parameters' /Users/user/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.2/lib/action_dispatch/http/mime_negotiation.rb:63:in block in formats’ /Users/user/.rvm/gems/ruby-2.4.1/gems/rack-2.0.3/lib/rack/request.rb:57:in fetch' /Users/user/.rvm/gems/ruby-2.4.1/gems/rack-2.0.3/lib/rack/request.rb:57:in fetch_header’ /Users/user/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.2/lib/action_dispatch/http/mime_negotiation.rb:61:in formats' /Users/user/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.2/lib/action_dispatch/middleware/public_exceptions.rb:22:in call’ /Users/user/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.2/lib/action_dispatch/middleware/show_exceptions.rb:49:in render_exception' /Users/user/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.2/lib/action_dispatch/middleware/show_exceptions.rb:34:in rescue in call’ /Users/user/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.2/lib/action_dispatch/middleware/show_exceptions.rb:30:in call' /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.1.2/lib/rails/rack/logger.rb:36:in call_app’ /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.1.2/lib/rails/rack/logger.rb:24:in block in call' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/tagged_logging.rb:69:in block in tagged’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/tagged_logging.rb:26:in tagged' /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/tagged_logging.rb:69:in tagged’ /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.1.2/lib/rails/rack/logger.rb:24:in call' /Users/user/.rvm/gems/ruby-2.4.1/gems/sprockets-rails-3.2.0/lib/sprockets/rails/quiet_assets.rb:13:in call’ /Users/user/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.2/lib/action_dispatch/middleware/remote_ip.rb:79:in call' /Users/user/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.2/lib/action_dispatch/middleware/request_id.rb:25:in call’ /Users/user/.rvm/gems/ruby-2.4.1/gems/rack-2.0.3/lib/rack/method_override.rb:22:in call' /Users/user/.rvm/gems/ruby-2.4.1/gems/rack-2.0.3/lib/rack/runtime.rb:22:in call’ /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.2/lib/active_support/cache/strategy/local_cache_middleware.rb:27:in call' /Users/user/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.2/lib/action_dispatch/middleware/executor.rb:12:in call’ /Users/user/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.2/lib/action_dispatch/middleware/static.rb:125:in call' /Users/user/.rvm/gems/ruby-2.4.1/gems/rack-2.0.3/lib/rack/sendfile.rb:111:in call’ /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.1.2/lib/rails/engine.rb:522:in call' /Users/user/.rvm/gems/ruby-2.4.1/gems/puma-3.9.1/lib/puma/configuration.rb:224:in call’ /Users/user/.rvm/gems/ruby-2.4.1/gems/puma-3.9.1/lib/puma/server.rb:602:in handle_request' /Users/user/.rvm/gems/ruby-2.4.1/gems/puma-3.9.1/lib/puma/server.rb:435:in process_client’ /Users/user/.rvm/gems/ruby-2.4.1/gems/puma-3.9.1/lib/puma/server.rb:299:in block in run' /Users/user/.rvm/gems/ruby-2.4.1/gems/puma-3.9.1/lib/puma/thread_pool.rb:120:in block in spawn_thread’ ^CExiting

I think here is better than Github since I am reading your awesome book now. Thanks and kind regards.

Dmfcb_pragsmall
17 Jul 2017, 00:17
David Copeland (480 posts)

It really is going to be impossible to diagnose the problem without seeing the source code. It’s also extremely difficult to see the error because it hasn’t been formatted—the forum is jumbled it all up.

Can you post your code somewhere so that I can look at it?

Generic-user-small
17 Jul 2017, 01:06
Magnus Nnamdi (2 posts)

Hi Dave, I finally fix the problem and thanks.

You must be logged in to comment