no such file to load active_record/associations/has_and_belongs_to_many_association
问题 I added the composite_primary_keys gem in my Gemfile. On local environment it runs fine, but on a centos machine it breaks with the following error. Ruby version is 1.9.2p290 and rubygems version is 1.3.7 on both environments. Does anyone know why that could be? bundle exec rake db:create --trace no such file to load -- active_record/associations/has_and_belongs_to_many_association /var/tmp/jenkins/gem_cache/myapp/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'