Module: SimpleForm
- Defined in:
- lib/simple_form.rb,
lib/simple_form/inputs.rb,
lib/simple_form/version.rb,
lib/simple_form/map_type.rb,
lib/simple_form/components.rb,
lib/simple_form/has_errors.rb,
lib/simple_form/i18n_cache.rb,
lib/simple_form/inputs/base.rb,
lib/simple_form/form_builder.rb,
lib/simple_form/components/hints.rb,
lib/simple_form/components/errors.rb,
lib/simple_form/components/labels.rb,
lib/simple_form/components/wrapper.rb,
lib/simple_form/error_notification.rb,
lib/simple_form/inputs/block_input.rb,
lib/simple_form/inputs/hidden_input.rb,
lib/simple_form/inputs/string_input.rb,
lib/simple_form/inputs/boolean_input.rb,
lib/simple_form/inputs/mapping_input.rb,
lib/simple_form/inputs/numeric_input.rb,
lib/simple_form/inputs/priority_input.rb,
lib/simple_form/components/label_input.rb,
lib/simple_form/inputs/date_time_input.rb,
lib/simple_form/components/placeholders.rb,
lib/simple_form/inputs/collection_input.rb,
lib/generators/simple_form/install_generator.rb,
lib/simple_form/action_view_extensions/builder.rb,
lib/simple_form/action_view_extensions/form_helper.rb
Defined Under Namespace
Modules: ActionViewExtensions, Components, Generators, HasErrors, I18nCache, Inputs, MapType Classes: ErrorNotification, FormBuilder
Constant Summary collapse
- VERSION =
"1.3.1".freeze
- @@hint_tag =
:span
- @@hint_class =
:hint
- @@error_tag =
:span
- @@error_class =
:error
- @@error_method =
:first
- @@error_notification_tag =
:p
- @@error_notification_class =
:error_notification
- @@error_notification_id =
nil
- @@components =
[ :placeholder, :label_input, :hint, :error ]
- @@collection_label_methods =
[ :to_label, :name, :title, :to_s ]
- @@collection_value_methods =
[ :id, :to_s ]
- @@collection_wrapper_tag =
nil
- @@item_wrapper_tag =
nil
- @@wrapper_tag =
:div
- @@wrapper_class =
:input
- @@wrapper_error_class =
:field_with_errors
- @@label_text =
lambda { |label, required| "#{required} #{label}" }
- @@required_by_default =
true
- @@file_methods =
[ :mounted_as, :file?, :public_filename ]
- @@input_mappings =
nil
- @@time_zone_priority =
nil
- @@country_priority =
nil
- @@default_input_size =
50
- @@translate =
true
Class Method Summary collapse
-
.setup {|_self| ... } ⇒ Object
Default way to setup SimpleForm.
Class Method Details
.setup {|_self| ... } ⇒ Object
Default way to setup SimpleForm. Run rails generate simple_form:install to create a fresh initializer with all configuration values.
115 116 117 |
# File 'lib/simple_form.rb', line 115 def self.setup yield self end |