1 # Set the default text field size when input is a string. Default is 50.
2 # Formtastic::SemanticFormBuilder.default_text_field_size = 50
4 # Set the default text area height when input is a text. Default is 20.
5 # Formtastic::SemanticFormBuilder.default_text_area_height = 5
7 # Should all fields be considered "required" by default?
8 # Defaults to true, see ValidationReflection notes below.
9 # Formtastic::SemanticFormBuilder.all_fields_required_by_default = true
11 # Should select fields have a blank option/prompt by default?
13 # Formtastic::SemanticFormBuilder.include_blank_for_select_by_default = true
15 # Set the string that will be appended to the labels/fieldsets which are required
16 # It accepts string or procs and the default is a localized version of
17 # '<abbr title="required">*</abbr>'. In other words, if you configure formtastic.required
18 # in your locale, it will replace the abbr title properly. But if you don't want to use
19 # abbr tag, you can simply give a string as below
20 # Formtastic::SemanticFormBuilder.required_string = "(required)"
22 # Set the string that will be appended to the labels/fieldsets which are optional
23 # Defaults to an empty string ("") and also accepts procs (see required_string above)
24 # Formtastic::SemanticFormBuilder.optional_string = "(optional)"
26 # Set the way inline errors will be displayed.
27 # Defaults to :sentence, valid options are :sentence, :list and :none
28 # Formtastic::SemanticFormBuilder.inline_errors = :sentence
30 # Set the method to call on label text to transform or format it for human-friendly
31 # reading when formtastic is used without object. Defaults to :humanize.
32 # Formtastic::SemanticFormBuilder.label_str_method = :humanize
34 # Set the array of methods to try calling on parent objects in :select and :radio inputs
35 # for the text inside each @<option>@ tag or alongside each radio @<input>@. The first method
36 # that is found on the object will be used.
37 # Defaults to ["to_label", "display_name", "full_name", "name", "title", "username", "login", "value", "to_s"]
38 # Formtastic::SemanticFormBuilder.collection_label_methods = [
39 # "to_label", "display_name", "full_name", "name", "title", "username", "login", "value", "to_s"]
41 # Formtastic by default renders inside li tags the input, hints and then
42 # errors messages. Sometimes you want the hints to be rendered first than
43 # the input, in the following order: hints, input and errors. You can
44 # customize it doing just as below:
45 # Formtastic::SemanticFormBuilder.inline_order = [:input, :hints, :errors]
47 # Specifies if labels/hints for input fields automatically be looked up using I18n.
48 # Default value: false. Overridden for specific fields by setting value to true,
49 # i.e. :label => true, or :hint => true (or opposite depending on initialized value)
50 # Formtastic::SemanticFormBuilder.i18n_lookups_by_default = false
52 # You can add custom inputs or override parts of Formtastic by subclassing SemanticFormBuilder and
53 # specifying that class here. Defaults to SemanticFormBuilder.
54 # Formtastic::SemanticFormHelper.builder = MyCustomBuilder