0
我使用的經過date_select幫手date_select幫手PARAMS,如:導軌 - 驗證
date_of_birth(1i)
date_of_birth(2i)
date_of_birth(3i)
我想用validates_presence_of驗證,但返回時毛坯從下拉菜單中選擇以下錯誤:
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.empty?