You need to upgrade your rails version for this example to work. The
decimal type isn't supported by the current stable release.
I'm sure this procedure is described somewhere close to the example.
Keep up to date with Rails on Twitter and This Week in Rails
Policies: Conduct, License, Maintenance, Security, Trademarks