Sha256: 21febc0e8073302f36dd76c9f817461178522f7b19afa8a4add6ff3346228c76
Contents?: true
Size: 584 Bytes
Versions: 46
Compression:
Stored size: 584 Bytes
Contents
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, :id => sanitize_to_id("hidden_active_admin_#{k}") end.join("\n").html_safe end end end end
Version data entries
46 entries across 46 versions & 2 rubygems