After a bit of searching for a truncation helper for HTML, I found this great gem: truncate_html. It maintains the HTML tags (i.e doesn't strip them out) and supports word boundaries. Nice! Oh, and supports Rails 2.x and 3.x.
Blog
About this Blog
This blog is no longer being maintained. The blog once was a part of my Ruby on Rails freelancing practice. If you would like to find out what I'm currently working on, please visit CivilCode Inc - Custom Software Development; we specialize in building tailored business application in Elixir and Phoenix.
Labels
- active-record (6)
- agile (5)
- application development (4)
- application-architecture (1)
- ask for help (1)
- associations (3)
- blank-static (2)
- bourne (2)
- bundler (1)
- business (1)
- capistrano (1)
- capybara (1)
- centos (2)
- checklists (11)
- compass (2)
- content management systems (3)
- craftmanship (1)
- css (7)
- cucumber (4)
- cufon (1)
- customer-centered web design (4)
- developer-challenge (4)
- domain-modelling (1)
- domain-patterns (1)
- ebooks (1)
- elixir (1)
- ember.js (1)
- error-handling (1)
- errors (1)
- facebook (1)
- fundamentals (3)
- gems (2)
- git (4)
- google-site-search (1)
- haml (1)
- heroku (9)
- html (3)
- html-5 (1)
- i18n (1)
- internet-explorer (2)
- interview (1)
- javascript (1)
- jquery (4)
- launch (10)
- life hacks (2)
- maintenance (1)
- memcached (1)
- memory-consumption (1)
- meta-programming (3)
- mocha (2)
- mocks (1)
- monitoring (1)
- mysql (1)
- named scopes (3)
- object-design (2)
- optimization (1)
- osx (2)
- personas (4)
- presentations (4)
- productivity (1)
- radiant (4)
- rails (35)
- rails-3.0 (5)
- rails-3.2 (1)
- railsconf (2)
- rake (1)
- rdoc (1)
- redmine (3)
- refinery (1)
- rest (1)
- rmagick (1)
- rspec (12)
- ruby (18)
- rvm (1)
- s3 (1)
- safari (1)
- sass (2)
- saving (2)
- searchlogic (1)
- sftp (1)
- shopify (1)
- spork (1)
- spree (2)
- sql (1)
- stand-up (7)
- static-matic (2)
- strategy (1)
- templates (1)
- testing (4)
- textmate (1)
- tools (1)
- unix (2)
- uploads (1)
- usability (1)
- user-stories (1)
- validations (1)
- vim (3)
- web design (1)
- workflow (2)
Firsthand Blog Archive
2002-2019 Nicholas Henry
All Rights Reserved