Rails Redo

March 8th, 2010

My environment for Ruby & Rails development began showing signs of wear and tear. I have been unable to get rvm to work for me at all. I dream about having the wonderful abilities it can provide, like independent sandboxes for rubies & gemsets, and configurations.

So when the latest gem upgrade (1.3.6) broke my older versions of rails (pre-2.3) things started to snowball uphill, and I decided to start over.

Read the rest of this entry

Rails, Money, Float, Decimal

November 17th, 2009

The problems of using floats to represent monetary values have been well discussed elsewhere. So it sufficeth me to say, “do not ever do it”. Now if you are confronted with this haunting bit of code (written by someone else, of course), and want to correct the elusive $35.000000000000000001 you are charging people then I have good news! It can be done, but the road is not paved. These are the four biggest bumps I’ve run into. They might apply to other styles of AR stores, but these tips are from my experiences with MySQL.

Read the rest of this entry

Unpack your unruly gems!

November 13th, 2009

Unpacking Gems doesn’t always work in some projects for various annoying reasons.

So this is just my hammer for the nail.

Read the rest of this entry