Could someone point me at an example that do validation "correctly".
I've got a controller, a couple of models, and some views. They work
fine except for the validation.
My model looks like
class ContractPayment < ActiveRecord::Base
belongs_to :contract, :foreign_key => "contract_id"
validates_presence_of :contract_id, :credit_card_type_code,
How do I trigger this validation and then display error msgs back to