Answers for "rails validate include"

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