I am a beginner in rails. As I was working on rails validation, I wanted to know where is the definition of
new_record? and all the validation helpers?
I was trying to find the definition of all these functions but couldn't find any.
Where do all this validations reside? As I know Ruby on Rails is pure object oriented programming language.
Any help will be appreciated. I already went through http://guides.rubyonrails.org/active_record_validations.html