Is it possible to display a form-field only if a specific condition is met?
I want to make something like:
<%= f.input :pregnancies, :as => :radio, :label => "Pregnancies", :collection => [["no", false], ["yes", true]]%>
if :pregnancies = true
then show this input
<%= f.input :preg_nr, :label => "Number of pregnancies" %>
Thanks in advance