ruby on rails - ROR paper_trial display all changes -


hi i'm pretty new rails, , brand new paper_trail.

i'm trying display simple table of changes made versions table , display in view

    <table class="table">     <tr>         <th>type</th>         <th>modified at</th>     </tr>            <% papertrail::version.order('id desc') |v| %>         <tr>              <td> <%= v.item_type.underscore.humanize %> </td>             <td> <%= v.created_at.to_s %></td>         </tr>            <% end %>        </table> 

unfortunately renders table headers not table body, insight appreciated.

it mising each method call,

<% papertrail::version.order('id desc').each |v| %> 

Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -