I'm using the acts_as_auditable plugin, and the revisions attribute gives me this chunk of text (i.e. in the "revisions" column; i.e. @audit.revisions)
---
user_id: 2
kind: French
name: Delicious Pies
I'm trying to convert that text into a human-readable format to display the details of the audit. For instance, I want to convert the above chunk (i.e, @audit.revisions) into something like:
Created "Delicious Pies", which is a French cuisine.
I'm thinking something along the lines of:
Created "<%= @audit.revisions[:name] %>", which is a <%= @audit.revisions[:kind] %> cusine.
Of course, that seems to be incorrect. Any ideas on doing it correctly?