When I first started working in Rails, I went with TextMate on my Mac. I really like TextMate, but trying to debug problems was really, really painful and time consuming at first. A few tips would have gone a long way: I really did not understand how to use “script/console” to debug problems; now, I [...]
Archive for March, 2009
Debugging and RDebug
Posted in Development Techologies on March 3, 2009 | 1 Comment »
Properly Moving Validation into Models
Posted in Development Techologies on March 1, 2009 | 1 Comment »
When you first start to learn Rails, you read about Model Validation, which consists of statements such as “validates_numericality_of :the_field”. This prevents non-conforming models from being saved. Properly leveraged, these help ensure business constraints with an iron fist (excepting validation override). Where to Best Enforce Business Constraints Web apps constantly process form inputs and do [...]