title: How to accurately use the rails diffy gem to compare another version?
body: <p>So I'm trying to compare recipes and then display the versions in a show. The compare functionality and view works properly. I can see them both on the same page. However I want to use diffy to show just what's different between the two. </p>
  
  <p>I'm using the partial "show" to output the differences. For sanity I want to build in this view diffy for the new "version". So below feel free to ignore: render "show", food: @version.</p>
  
  <p>Right now in my compare(show) view I have the following:</p>
  
  <pre><code>  &lt;div&gt;
      &lt;h1&gt; Original recipe &lt;/h1&gt;
      &lt;%= render 'show', food: @original %&gt;
    &lt;/div&gt;
     &lt;!-- Clone form  --&gt;
    &lt;div&gt;
      &lt;h1&gt; Cloned recipe &gt;&gt; Version of the Original &lt;/h1&gt;
      &lt;%= render 'show', food: @version %&gt;
      &lt;div class='row mt'&gt;
       &lt;div class='col-sm-12'&gt;
        &lt;style&gt;&lt;%= Diffy::CSS %&gt;&lt;/style&gt;
         &lt;div class='well diff'&gt;
         &lt;p&gt;
          &lt;strong&gt;Name:&lt;/strong&gt;
          &lt;%= diff(food.recipe.name) %&gt;
        &lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>I honestly can't think of what to put in the line below to compare the two:</p>
  
  <pre><code> &lt;%= diff(food.recipe.name) %&gt; 
  </code></pre>
  
  <p>I've tried doing variations on @original and @version separated by commas and even built out a food helper to no avail.</p>
  
  <p>My helper looks like:</p>
  
  <pre><code>   def diff(content1, content2)
      changes = Diffy::Diff.new(content1, content2,
                           include_plus_and_minus_in_html: true,
                           include_diff_info: true)
      changes.to_s.present? ? changes.to_s(:html).html_safe : 'No Changes'
    end
  </code></pre>
  
  <p>Thoughts on what I need to put in for diffy? </p>