README.markdown in hgimenez-truncate_html-0.1.0 vs README.markdown in hgimenez-truncate_html-0.1.1
- old
+ new
@@ -1,9 +1,9 @@
TruncateHtml
============
-truncate_html is a Rails helper plugin that [cuts off](http://www.youtube.com/watch?v=6XG4DIOA7nU) a string of HTML and takes care of closing any lingering open tags. There are many possible solutions to this. This plugin does not have any dependencies, and does all it's work via regular expressions.
+truncate_html is a Rails helper plugin that [cuts off](http://www.youtube.com/watch?v=6XG4DIOA7nU) a string of HTML and takes care of closing any lingering open tags. There are many possible solutions to this. This plugin does not have any dependencies, and does all it's work via [regular expressions](http://xkcd.com/208/).
The API is very similar to Rails' own truncate method.
Example
@@ -24,13 +24,21 @@
* :omission => '...'
Installation
------------
-As a gem:
-<code>sudo gem install hgimenez-truncate_html</code>
+#### As a gem
+Add this to your <code>config/environment.rb</code>:
-As a plugin:
+ config.gem 'truncate_html',
+ :source => 'http://gemcutter.org'
+
+Then either
+<code>sudo rake gems:install</code>
+or
+<code>sudo gem install truncate_html</code>
+
+#### As a plugin:
<code>script/plugin install git://github.com/hgimenez/truncate_html.git</code>
Issues
------