I've got a form where some text fields should be visible only under certain conditions. Basically, there's a select list and depending on what's selected, other fields are either showing or not. So by default I need to hide divs that wrap inputs in the form generated by simple_form gem.
Example:
= simple_form_for
= f.select ...
= f.input :s_n1, :required => true
= f.input :s_n2, :required => true
= f.input :s_n3, :required => true
It should behave the same as hide() by jqyuery:
$("div.s_n1").hide();
$("div.s_n2").hide();
$("div.s_n3").hide();