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/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/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, I18nCache, Inputs, MapType Classes: ErrorNotification, FormBuilder
Constant Summary collapse
- VERSION =
"1.2.2".freeze
- @@hint_tag =
:span- @@error_tag =
:span- @@error_method =
:first- @@error_notification_tag =
:p- @@components =
[ :label_input, :hint, :error ]
- @@collection_label_methods =
[ :to_label, :name, :title, :to_s ]
- @@collection_value_methods =
[ :id, :to_s ]
- @@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 ]
- @@time_zone_priority =
nil- @@country_priority =
nil- @@default_input_size =
50
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.
79 80 81 |
# File 'lib/simple_form.rb', line 79 def self.setup yield self end |