Hi all,
I'm interested in getting preview functionality working similar to how the 37signals job site does: http://jobs.37signals.com. Below are some screen shots of how it works.
- Step 1. Create your ad http://cl.ly/dfc4761b015c7f43c8ab (URL /jobs/new)
- Step 2. Preview your ad http://cl.ly/9c4b4041cfea83d8569e (URL /jobs/new/preview)
- Step 3. Publish your ad http://cl.ly/a58284d90fd380d2c26b (URL /listings/new/purchase?token=5198)
So assuming you have Post model where Step 1 usually takes place in the new/create view/actions, how should one continue to Step 2 Preview and then after previewing, proceeding to the Step 3 publishing the post/ad?
Do they actually save the ad/post in the database before continuing to Step 2 (Preview) but set a flag (like a boolean field called preview set to true)? It looks like they set a token paramater but I'm not sure what it's used for)
I'm interested in this because it seems to go against the CRUD/REST and I thought it would be good to know how it worked.
Thanks!