Skip to content

Instantly share code, notes, and snippets.

@dawidof
Last active May 29, 2016 06:19
Show Gist options
  • Save dawidof/e475735fae973c0c3ca7d6090e32a7a2 to your computer and use it in GitHub Desktop.
Save dawidof/e475735fae973c0c3ca7d6090e32a7a2 to your computer and use it in GitHub Desktop.
Error in console
$ rails c
Running via Spring preloader in process 26287
Loading production environment (Rails 5.0.0.rc1)
2.3.1 :001 > Commenter.first
Commenter Load (1.4ms) SELECT "commenters".* FROM "commenters" ORDER BY "commenters"."id" ASC LIMIT $1 [["LIMIT", 1]]
=> #<Commenter id: 1, email: "..@facebook.com", encrypted_password: "$2a$11$QY9St83/E6HpX.8G0WJgb.ckimj8m5uvpn2cE9gbV.p...", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 1, comments_count: 4, current_sign_in_at: "2016-05-19 17:13:15", last_sign_in_at: "2016-05-19 17:13:15", current_sign_in_ip: "123.79.106.40", last_sign_in_ip: "123.79.106.40", omni_data: {"provider"=>"facebook", "uid"=>"..", "sex"=>1, "page_url"=>"https://facebook.com/.."}, omni_data_received: {}, admin: true, country_ip: "PL", city_ip: "Warsaw", ip: "123.79.106.40", full_name: "dawidof", blocked_by: nil, blocked_at: nil, hand_up: false, warnings: 0, commenter_hash: "c95c1393-b74f-407d-9cef-0cef637fc4f4", connection_hash: "6439168a-4f86-4056-94af-77695c5d2748", created_at: "2016-05-19 17:13:14", updated_at: "2016-05-24 08:39:05">
2.3.1 :002 > reload!
Reloading...
NameError: uninitialized constant Commenter
Did you mean? CommonJS
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.rc1/lib/active_support/inflector/methods.rb:268:in `const_get'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.rc1/lib/active_support/inflector/methods.rb:268:in `block in constantize'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.rc1/lib/active_support/inflector/methods.rb:266:in `each'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.rc1/lib/active_support/inflector/methods.rb:266:in `inject'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.rc1/lib/active_support/inflector/methods.rb:266:in `constantize'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.rc1/lib/active_support/dependencies.rb:583:in `get'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.rc1/lib/active_support/dependencies.rb:614:in `constantize'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/devise-4.0.3/lib/devise.rb:377:in `get'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/devise-4.0.3/lib/devise/mapping.rb:81:in `to'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/devise-4.0.3/lib/devise/mapping.rb:76:in `modules'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/devise-4.0.3/lib/devise/mapping.rb:93:in `routes'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/devise-4.0.3/lib/devise/mapping.rb:160:in `default_used_route'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/devise-4.0.3/lib/devise/mapping.rb:70:in `initialize'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/devise-4.0.3/lib/devise.rb:411:in `new'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/devise-4.0.3/lib/devise.rb:411:in `add_mapping'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/devise-4.0.3/lib/devise/rails/routes.rb:241:in `block in devise_for'
... 45 levels...
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.rc1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.rc1/lib/active_support/dependencies.rb:293:in `require'
from /home/dawidof/facebook-academy/bin/rails:9:in `<top (required)>'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/spring-1.7.1/lib/spring/commands/rails.rb:6:in `load'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/spring-1.7.1/lib/spring/commands/rails.rb:6:in `call'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/spring-1.7.1/lib/spring/command_wrapper.rb:38:in `call'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/spring-1.7.1/lib/spring/application.rb:191:in `block in serve'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/spring-1.7.1/lib/spring/application.rb:161:in `fork'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/spring-1.7.1/lib/spring/application.rb:161:in `serve'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/spring-1.7.1/lib/spring/application.rb:131:in `block in run'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/spring-1.7.1/lib/spring/application.rb:125:in `loop'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/spring-1.7.1/lib/spring/application.rb:125:in `run'
from /home/dawidof/.rvm/gems/ruby-2.3.1/gems/spring-1.7.1/lib/spring/application/boot.rb:19:in `<top (required)>'
from /home/dawidof/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/dawidof/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'
2.3.1 :003 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment