Skip to content

Commit

Permalink
Update the doc indices to reflect the use of decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Apr 1, 2012
1 parent 484382d commit d1b1ebd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/app_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,15 @@
<div class='highlight'><pre>|- <a class="source" href="app/controllers/webfinger_controller.html">webfinger_controller.rb</a></pre></div>
</td>
</tr>
<tr id='section-helpers'>
<tr id='section-decorators'>
<td class=docs>
<div class="pilwrap">
<a class="pilcrow" href="#section-helpers">&#182;</a>
<a class="pilcrow" href="#section-decorators">&#182;</a>
</div>
<p>The <code>helpers</code> directory only has one file, which only has one method, in it right now. Helpers have gone out of style of late.</p>
<p>The <code>decorators</code> directory holds View Model objects that use the <a href="https://github.com/jcasimir/draper">draper gem</a>. They help us to generate some of the HTML in an object-oriented way, rather than the more procedural helper functions do. There's a great <a href="http://railscasts.com/episodes/286-draper">RailsCast</a> on this subject.</p>
</td>
<td class=code>
<div class='highlight'><pre>helpers/</pre></div>
<div class='highlight'><pre>decorators/</pre></div>
</td>
</tr>
<tr id='section-models'>
Expand Down
11 changes: 11 additions & 0 deletions docs/test_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@
<div class='highlight'><pre>data/</pre></div>
</td>
</tr>
<tr id='section-test-decorators'>
<td class=docs>
<div class="pilwrap">
<a class="pilcrow" href="#section-test-decorators">&#182;</a>
</div>
<p>This directory contains the tests for the decorator objects. These are Model View objects that make use of the <a href="https://github.com/jcasimir/draper">draper gem</a> and generate some of the HTML.</p>
</td>
<td class=code>
<div class='highlight'><pre>data/</pre></div>
</td>
</tr>
<tr id='section-test-fabricators'>
<td class=docs>
<div class="pilwrap">
Expand Down

0 comments on commit d1b1ebd

Please sign in to comment.