How to rollback Rails database migration

Rollback Rails database migration.

Cannot build mysql gem?

If you saw the “Failed to build gem native extension” error while building native mysql gem then you need to install libmysql++-dev package.

Rails migration example

Let’s assume that we want to add friendly_name field to the bookmark_categories table.

How to run specific Rails tests?

Execute specific Rails tests.

How to test regular expressions

Test regular expressions using a web-based interface.

Zen Photo – Polaroid-like effect

Fortunately, it is the last time I try to achieve such effect as I am switching gallery to the Zen Photo so lets see result at first:

Ruby and RMagick – Quote with Polaroid-like effect

To create a Polaroid-like effect you just need the RMagick gem and a couple of small functions.