08.16.07

Posted in Rails at 5:03 pm by jasonb

I download a prerelease of the latest Engines earlier in the summer with piston. My tests were failing in strange and magical ways. I spent quite a bit of time trying different things, then finally resorted to a fresh Rails app that I slowly populated with relevant files. Quickly I discovered the problem was my Engines plugin. I really thought I had the full release, but clearly not.

Read the rest of “piston saves!” »

08.11.07

Posted in JavaScript at 1:38 am by jasonb

Usually I love mootools, really. Usually. I found CSS Guy’s form field hints posting inspiring, so I modified it to work with mootools. The result is something simple and easy.

Read the rest of “mootools and form field hints” »

08.06.07

Posted in Rails at 4:25 pm by jasonb

I find myself having to validate an email address in a couple of different models. I’ve had to refine the pattern a couple of times, but don’t always remember to do it in every place, which is silly anyway. Since I don’t feel the need to delve into a new validation, like a validates_email_address or whatever, the following lets me simply reuse an existing validation in multiple places.

Read the rest of “dry model validations with class_eval” »