Answers for "rails model validatiob"

2

validates inclusion of rails

validates_inclusion_of :size, :in => ['small', 'medium', 'large']
Posted by: Guest on July-02-2020

Browse Popular Code Answers by Language