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
Post a Comment