Lines Matching refs:config
2 SimpleForm.setup do |config|
8 config.wrappers :default, :class => :input,
49 config.default_wrapper = :default
52 # Defaults to :nested for bootstrap config.
55 config.boolean_style = :nested
58 config.button_class = 'btn'
63 # config.error_method = :first
66 config.error_notification_tag = :div
69 config.error_notification_class = 'alert alert-error'
72 # config.error_notification_id = nil
75 # config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
78 # config.collection_value_methods = [ :id, :to_s ]
81 # config.collection_wrapper_tag = nil
84 # config.collection_wrapper_class = nil
89 # config.item_wrapper_tag = :span
92 # config.item_wrapper_class = nil
95 # config.label_text = lambda { |label, required| "#{required} #{label}" }
98 config.label_class = 'col-lg-2 control-label'
101 config.form_class = 'simple_form form-horizontal'
104 # config.generate_additional_classes_for = [:wrapper, :label, :input]
107 # config.required_by_default = true
111 config.browser_validations = true
114 # config.file_methods = [ :mounted_as, :file?, :public_filename ]
119 # config.input_mappings = { /count/ => :integer }
123 # config.wrapper_mappings = { :string => :prepend }
126 # config.time_zone_priority = nil
129 # config.country_priority = nil
132 # config.default_input_size = 50
135 # config.translate_labels = true
138 # config.inputs_discovery = true
141 # config.cache_discovery = !Rails.env.development?