Skip to content

Instantly share code, notes, and snippets.

Created October 13, 2010 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/623727 to your computer and use it in GitHub Desktop.
Save anonymous/623727 to your computer and use it in GitHub Desktop.
Mysql2::Error: closed MySQL connection
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/mysql2-0.2.4/lib/active_record/connection_adapters/mysql2_adapter.rb:214:in `escape'
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/mysql2-0.2.4/lib/active_record/connection_adapters/mysql2_adapter.rb:214:in `quote_string'
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/activerecord-3.0.0/lib/active_record/connection_adapters/abstract/quoting.rb:21:in `quote'
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/mysql2-0.2.4/lib/active_record/connection_adapters/mysql2_adapter.rb:201:in `quote'
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/arel-1.0.1/lib/arel/engines/sql/formatters.rb:25:in `quote'
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/arel-1.0.1/lib/arel/engines/sql/formatters.rb:127:in `scalar'
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/arel-1.0.1/lib/arel/engines/sql/core_extensions/object.rb:5:in `to_sql'
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/arel-1.0.1/lib/arel/algebra/attributes/attribute.rb:299:in `format'
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/arel-1.0.1/lib/arel/algebra/predicates.rb:142:in `to_sql'
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/activerecord-3.0.0/lib/active_record/relation/query_methods.rb:145:in `block in build_arel'
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/activerecord-3.0.0/lib/active_record/relation/query_methods.rb:140:in `each'
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/activerecord-3.0.0/lib/active_record/relation/query_methods.rb:140:in `build_arel'
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/activerecord-3.0.0/lib/active_record/relation/query_methods.rb:110:in `arel'
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/activerecord-3.0.0/lib/active_record/relation.rb:64:in `to_a'
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/activerecord-3.0.0/lib/active_record/relation.rb:349:in `inspect'
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/railties-3.0.0/lib/rails/commands/console.rb:44:in `start'
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/railties-3.0.0/lib/rails/commands/console.rb:8:in `start'
from /Users/Ephraim/.rvm/gems/ruby-1.9.2-head/gems/railties-3.0.0/lib/rails/commands.rb:23:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment