title: Show Last modified tables/records Rails 3.2
body: <p>I still can't figure out how to implement this as i am a newbie with this. some people helpt me and said i had to use audited, so it did. this is my controller:</p>
  
  <pre><code>  def show
  
      add_breadcrumb 'Contract Bekijken', :contracten_path
  
      @contracten = Contracten.find(params[:id])
  
      @audits = @contracten.audits.collect { |a| a.created_at }
  
      respond_to do |format|
        format.html # show.html.erb
        format.json { render json: @contracten }
      end
    end
  </code></pre>
  
  <p>Here's a pastie of my whole controller. <a href="http://pastie.org/4270702" rel="nofollow noreferrer">http://pastie.org/4270702</a></p>
  
  <p>But i don't know if this is right or how to implement this to my views.</p>
  
  <p>I hope someone really can help because i really need this to work this week.</p>
  
  <p>Thanks.</p>
  
  <hr>
  
  <p>i have a rails app where i can store contracts in a database, it also has persons and factories tables in the database.
  Now i would like to have a last modified table.</p>
  
  <p>I would like when people update/add a new record to the database, that it will show the modifications in the div right on the screenshot.</p>
  
  <p>Thanks :D</p>