EphemeralModel, for Rails 2.2.2 form validation without a DB table

I recently upgraded WhatYouAte.com to Rails 2.2.2. I had been using advice from the Rails Wiki’s HowToUseValidationsWithoutExtendingActiveRecord page. I was using a class based on the RailsWeenie code (that site is down now) and it stopped working. Here’s a new replacement hack that works almost identically.
Continue reading “EphemeralModel, for Rails 2.2.2 form validation without a DB table”