How does 37signals job preview functionality work?

Posted by slythic on Stack Overflow See other posts from Stack Overflow or by slythic
Published on 2010-05-27T13:36:24Z Indexed on 2010/05/27 13:41 UTC
Read the original article Hit count: 241

Filed under:
|
|
|

Hi all,

I'm interested in getting a preview functionality working similar to how the 37signals job site does: http://jobs.37signals.com. Below are some screen shots of how it works.

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!

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about forms