Non-persistent Rails model classes, for easier validation

I’ve been fighting for a couple of days to learn how to best use Rails’ form validation on forms that don’t map cleanly to database tables. I think I’ve got it. The trick appears to be to use non-persistent model classes, that nonetheless inherit from ActiveRecord::Base. Here’s how.
Continue reading “Non-persistent Rails model classes, for easier validation”