Ruby on Rails unit test: cannot find table error
If your Ruby on Rails unit tests complain about not being able to find a table after you’ve added a new model, it just means you forgot to prepare the test database with the latest data. The error...
View Articleruby on rails – bundle reinstall
After an OS upgrade I needed to reinstall all the gems for my Rails project (well, I probably didn’t need to do it, but it seemed the quickest way). Since I used RVM and only had one Ruby on Rails...
View ArticleLibrary not loade: /usr/local/lib/libfreetype.6.dylib (LoadError)
Reason: Incompatible library version: libMagickCore.5.dylib requires version 16.0.0 or later, but libfreetype.6.dylib provides version 15.0.0 Solution: $ brew uninstall freetype $ brew install...
View ArticleRuby 2.0′s Version of Python’s PDB
So ruby-debug is still broken for 2.0, but someone came up with a package called byebug. Check it out.
View Article