On Sep 17, 2:28 pm, arifb <[EMAIL PROTECTED]> wrote:
> i realized that the post may have not been totally clear:
>
> basically, i just want to validate against something that is not in
> the db/model - is this possible to do in the model so that i have
> access to the Error object?

Are you referring to something like this?

class Session
  attr_accessor :match # match does not exist in the db, that's why we
defined a attr_accessor for it

  validates_presence_of :match
end
--~--~---------~--~----~------------~-------~--~----~
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