Answers for "validates inclusion test rails 1..12"

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