I am developing a classifieds type application. It has a Classified
Model, Classified controller and a “show” view.
When viewing an ad, it has an option to reply to the advertiser through
action mailer. This reply is a form that contains 2 text fields ( email
and message) not connected to any table.
How do i validate this email and message?. I was told that
attr_accessor can be used but this doesn’t work quite well as I am
unable use it in Classified Model because when an advertiser edit’s
his/her ad, it throws a validation that “Message” cannot be blank ( this
message field is the one that should be used for replying to the
any idea is much appreciated.