Best way to create preview functionality in Rails

Posted by slythic on Stack Overflow See other posts from Stack Overflow or by slythic
Published on 2010-05-23T14:04:05Z Indexed on 2010/05/23 16:50 UTC
Read the original article Hit count: 347

Filed under:
|
|
|

Hi all,

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.

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.

I found this article (http://eyedeal.team88.org/node/105) but it seems dated. Any ideas on what the best approach for this would be?

Many thanks, Tony

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about forms