Skip to content

Instantly share code, notes, and snippets.

@douglaslise
Created January 4, 2015 02:09
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 douglaslise/fbe5e82c2aad0e9d8abb to your computer and use it in GitHub Desktop.
Save douglaslise/fbe5e82c2aad0e9d8abb to your computer and use it in GitHub Desktop.
Call stack from fb error in rails 4.2
NoMethodError: undefined method `compile' for #<String:0xb382808>
from /home/douglas/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/database_statements.rb:17:in `to_sql'
from /home/douglas/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/database_statements.rb:36:in `select_all'
from /home/douglas/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/query_cache.rb:70:in `select_all'
from /home/douglas/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.0/lib/active_record/relation/calculations.rb:264:in `execute_simple_calculation'
from /home/douglas/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.0/lib/active_record/relation/calculations.rb:221:in `perform_calculation'
from /home/douglas/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.0/lib/active_record/relation/calculations.rb:127:in `calculate'
from /home/douglas/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.0/lib/active_record/relation/calculations.rb:42:in `count'
from /home/douglas/.rvm/gems/ruby-2.1.4/gems/activerecord-4.2.0/lib/active_record/querying.rb:13:in `count'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment