module ActiveAdmin module ViewHelpers module FormHelper def active_admin_form_for(resource, options = {}, &block) options = Marshal.load( Marshal.dump(options) ) options[:builder] ||= ActiveAdmin::FormBuilder semantic_form_for resource, options, &block end def hidden_field_tags_for(params, options={}) fields_for_params(params, options).map do |kv| k, v = kv.first hidden_field_tag k, v end.join("\n").html_safe end end end end