better way to detect form_for, fields_for blocks