lib/formtastic.rb
def inline_errors_for(method, options=nil) #:nodoc:
      return nil unless @object && @object.respond_to?(:errors) && [:sentence, :list].include?(@@inline_errors)

      errors = @object.errors[method.to_sym]
      send("error_#{@@inline_errors}", Array(errors)) unless errors.blank?
    end
# Generates error messages for the given method. Errors can be shown as list
# or as sentence. If :none is set, no error is shown.
#
# This method is also aliased as errors_on, so you can call on your custom
# inputs as well:
#
#   semantic_form_for :post do |f|
#     f.text_field(:body)
#     f.errors_on(:body)
#   end
#
Generates error messages for the given method. Errors can be shown as list
or as sentence. If :none is set, no error is shown.

This method is also aliased as errors_on, so you can call on your custom
inputs as well.


Generates error messages for the given method . Errors can be shown as list or as sentence . If : none is set no error is shown . This method is also aliased as errors_on so you can call on your custom inputs as well .
def inline_errors_for(method, options=nil) 
      return nil unless @object && @object.respond_to?(:errors) && [:sentence, :list].include?(@@inline_errors)
      errors = @object.errors[method.to_sym]
      send("error_#{@@inline_errors}", Array(errors)) unless errors.blank?
    end
def inline_errors_for ( method , options = nil ) return nil unless @object && @object . respond_to? ( :errors ) && [ :sentence , :list ] . include? ( @@inline_errors ) errors = @object . errors [ method . to_sym ] send ( "error_#{@@inline_errors}" , Array ( errors ) ) unless errors . blank? end
Generates error messages for the given method.
Generates error messages for the given method .
#:nodoc:
method
options