lib/formtastic.rb
# Also generates a fieldset and an ordered list but with label based in
# method. This methods is currently used by radio and datetime inputs.
#
Also generates a fieldset and an ordered list but with label based in
method. This methods is currently used by radio and datetime inputs.
Also generates a fieldset and an ordered list but with label based in method . This methods is currently used by radio and datetime inputs .
def field_set_and_list_wrapping_for_method(method, options, contents)
      contents = contents.join if contents.respond_to?(:join)
      template.content_tag(:fieldset,
        %{<legend>#{self.label(method, options_for_label(options).merge!(:as_span => true))}</legend>} +
        template.content_tag(:ol, contents)
      )
    end
def field_set_and_list_wrapping_for_method ( method , options , contents ) contents = contents . join if contents . respond_to? ( :join ) template . content_tag ( :fieldset , %{<legend>#{self.label(method, options_for_label(options).merge!(:as_span => true))}</legend>} + template . content_tag ( :ol , contents ) ) end
Also generates a fieldset and an ordered list but with label based in
method.
Also generates a fieldset and an ordered list but with label based in method .
method
options
contents