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
advertiser).

any idea is much appreciated.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to