title: Best way to create preview functionality in Rails
body: <p>I'm looking to implement preview functionality in my posts scaffold. All I need to do is allow a user to enter information in the new view (/posts/new) and then replace the submit button with a preview button.</p>
  
  <p>Once the preview button is clicked, the user is routed to the preview page (probably /posts/new/preview). If the user wants to make a change they would click 'go back' or if they are happy with the post they can then submit the post.</p>
  
  <p>I found this article (<a href="http://eyedeal.team88.org/node/105" rel="nofollow noreferrer">http://eyedeal.team88.org/node/105</a>) but it seems dated. Any ideas on what the best approach for this would be?</p>
  
  <p>Many thanks,
  Tony</p>