이Mongoid를 사용하여 formtastic에서 단 하나의 check_box를 어떻게 설정합니까? 내 모델에서
field :resizable, type: Boolean, default: true
내가 formtastic에서 시도하는 것 :
= f.input :resizable, :as => :check_boxes # This produces two textboxes
= f.input :resizable # This produces an input field
= f.input :resizable, :as => :check_box # This produces an error
내가로 얻을 오류 : CHECK_BOX은 다음과 같습니다
ActionView::Template::Error (Formtastic::UnknownInputError):
내가 같이 사용하는 경우 : : 그것은 작동 라디오.
오류의 게시물을 올리십시오. –
안녕 타일러, 내 오류 메시지와 함께 업데이 트되었습니다. –