Created
March 25, 2011 14:29
-
-
Save simi/886918 to your computer and use it in GitHub Desktop.
error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-1.8.7-p302 > Contact.with_locales(:en) | |
ActiveRecord::StatementInvalid: Mysql::Error: Unknown column 'contact_translations.locale' in 'where clause': SELECT `contacts`.* FROM `contacts` WHERE `contact_translations`.`locale` IN ('en') | |
from /home/retro/.rvm/gems/ruby-1.8.7-p302@mycoolproject/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract_adapter.rb:207:in `log' | |
from /home/retro/.rvm/gems/ruby-1.8.7-p302@mycoolproject/gems/activerecord-3.0.5/lib/active_record/connection_adapters/mysql_adapter.rb:289:in `execute' | |
from /home/retro/.rvm/gems/ruby-1.8.7-p302@mycoolproject/gems/activerecord-3.0.5/lib/active_record/connection_adapters/mysql_adapter.rb:619:in `select' | |
from /home/retro/.rvm/gems/ruby-1.8.7-p302@mycoolproject/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all' | |
from /home/retro/.rvm/gems/ruby-1.8.7-p302@mycoolproject/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/query_cache.rb:56:in `select_all' | |
from /home/retro/.rvm/gems/ruby-1.8.7-p302@mycoolproject/gems/activerecord-3.0.5/lib/active_record/base.rb:467:in `find_by_sql' | |
from /home/retro/.rvm/gems/ruby-1.8.7-p302@mycoolproject/gems/activerecord-3.0.5/lib/active_record/relation.rb:64:in `to_a' | |
from /home/retro/.rvm/gems/ruby-1.8.7-p302@mycoolproject/gems/activerecord-3.0.5/lib/active_record/relation.rb:356:in `inspect' | |
from /home/retro/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/irb.rb:310:in `output_value' | |
from /home/retro/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/irb.rb:159:in `eval_input' | |
from /home/retro/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/irb.rb:271:in `signal_status' | |
from /home/retro/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/irb.rb:155:in `eval_input' | |
from /home/retro/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/irb.rb:154:in `eval_input' | |
from /home/retro/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/irb.rb:71:in `start' | |
from /home/retro/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/irb.rb:70:in `catch' | |
from /home/retro/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/irb.rb:70:in `start' | |
from /home/retro/.rvm/gems/ruby-1.8.7-p302@mycoolproject/gems/railties-3.0.5/lib/rails/commands/console.rb:44:in `start' | |
from /home/retro/.rvm/gems/ruby-1.8.7-p302@mycoolproject/gems/railties-3.0.5/lib/rails/commands/console.rb:8:in `start' | |
from /home/retro/.rvm/gems/ruby-1.8.7-p302@mycoolproject/gems/railties-3.0.5/lib/rails/commands.rb:23 | |
from script/rails:6:in `require' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment