README.textile in crummy-1.5.0 vs README.textile in crummy-1.6.0
- old
+ new
@@ -8,24 +8,14 @@
Simply add the dependency to your Gemfile:
<pre>
<code>
- gem "crummy", "~> 1.5.0"
+ gem "crummy", "~> 1.6.0"
</code>
</pre>
-h3. Rails 2
-
-In your terminal, write:
-
-<pre>
- <code>
- gem install crummy
- </code>
-</pre>
-
h2. Example
In your controllers you may add_crumb either like a before_filter or within a method (It is also available to views).
<pre>
@@ -92,10 +82,11 @@
render_crumbs :separator => ' | ' #=> <a href="/">Home</a> | <a href="/businesses">Businesses</a>
render_crumbs :format => :xml #=> <crumb href="/">Home</crumb><crumb href="/businesses">Businesses</crumb>
render_crumbs :format => :html_list #=> <ul class="" id=""><li class=""><a href="/">Home</a></li><li class=""><a href="/">Businesses</a></li></ul>
</code>
</pre>
+
A crumb with a nil argument for the link will output an unlinked crumb.
With :format => :html_list you can specify additional params: :active_li_class, :li_class, :ul_class, :ul_id
h3. App-wide configuration
@@ -112,10 +103,10 @@
config.format = :xml
end
</code>
</pre>
-Possible parameters for configuration are:
+Possible parameters for configuration are:
<pre>
<code>
:format
:links