lib/labelify.rb
# Error messages for given field, concatenated with +to_sentence+.
Error messages for given field, concatenated with +to_sentence+.
Error messages for given field concatenated with + to_sentence + .
def inline_error_messages(method_name)
      if @object.respond_to?(:errors) && Labelify.errors_on(@object, method_name.to_s)
        messages = Labelify.errors_on(@object, method_name.to_s)
        messages = messages.kind_of?(Array) ? messages.map{|m|t(m)}.to_sentence : t(messages)
        content_tag(:span, messages, :class => 'error_message')
      else
        ''
      end
    end
def inline_error_messages ( method_name ) if @object . respond_to? ( :errors ) && Labelify . errors_on ( @object , method_name . to_s ) messages = Labelify . errors_on ( @object , method_name . to_s ) messages = messages . kind_of? ( Array ) ? messages . map { | m | t ( m ) } . to_sentence : t ( messages ) content_tag ( :span , messages , :class => 'error_message' ) else '' end end
Error messages for given field, concatenated with +to_sentence+.
Error messages for given field concatenated with + to_sentence + .
method_name
<not_specific>