Posted at

ransackでカラム値がnullのものを検索 with simple-form and haml

More than 5 years have passed since last update.

ransackでカラム値がnullのものを検索

http://qiita.com/marqs/items/dc62759bdd8ea068f995

5分悩んだので覚えがいておく

= search_form_for @q,builder: SimpleForm::FormBuilder do |f|

= f.input :name_null, as: :boolean