app/helpers/application_helper.rb
# Generate an abbr tag for long words
Generate an abbr tag for long words
Generate an abbr tag for long words
def word_break(word)
    if word.length > 10
      content_tag :abbr, truncate(word, :length => 10), :title => word
    else
      word
    end
  end
def word_break ( word ) if word . length > 10 content_tag :abbr , truncate ( word , :length => 10 ) , :title => word else word end end
Generate an abbr tag for long words
Generate an abbr tag for long words
word