select list in model / validation inclusion

4 views
Skip to first unread message

fugee ohu

unread,
Apr 28, 2018, 4:45:13 AM4/28/18
to Ruby on Rails: Talk
I'm trying to put an inclusion list in my model which has the display options and values for select in my form and validation in the model My code causes  'not included in the list' error:


  DURATION_TYPES =  [['7 days', 7 ],['14 days', 14], ['21 days',21], ['30 days',30]]

Reply all
Reply to author
Forward
0 new messages