Tag Archives: Ruby

Rails Migrations, Primary key is not allowed in a has_and_belongs_to_many join table

I was working like a fiend on a project, and forgot to add :id => false to a join table migration. For completeness, here’s the migration as it is supposed to look:

As I said, I forgot the :id … Continue reading

Posted in Ruby on Rails, Ruby on Rails, Topics, Tutorials | Tagged , , | Leave a comment

RubyGems 1.2+ Index not found, gems fail to install/update slow/sluggish

I had this problem while running sudo gem install anything, like sudo gem install sqlite3-ruby or what not, albeit while running Ubuntu in VirtualBox. The fix that worked for me was editing /etc/resolv.conf and using google’s public dns nameservers of … Continue reading

Posted in Computer Science, General Computing, Information News, Topics, Tutorials | Tagged , , , , | Leave a comment