2011-05-13 5 views
0

date_select 도우미를 검증하는 것은 같은 PARAMS :레일 내가 통과 date_select 도우미를 사용하고

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? 
: 나는 validates_presence_of를 사용하여 유효성을 좋아하지만, 드롭 다운에서 선택되는 빈 다음과 같은 오류를 반환 할
date_of_birth(1i) 
date_of_birth(2i) 
date_of_birth(3i) 

답변

0

jQuery가 저를위한 올바른 해결책 인 것처럼 보입니다. :)

관련 문제