Validating form data without a model

I have a form which has some fields that aren't associated with any
model, but require validation. What is the best way to do this. Can I
somehow use ActiveRecord::Validations. Ideally, I would like to
populate the Error object to be able to use error_messages_for?

Thanks