Hi, Ive got a form for a blog post and there are 3 buttons - Publish, Preview and Save as Draft.
Clicking on Preview should open a new window with the preview of the post without saving it while the current window stays on the "New Post" form. I dont want the post to be saved because, once the user views the preview and closes it, when he clicks on, say, Save as Draft on the form, a second post with the same details gets created. How can I achieve this functionality? On a side note, I also want to perform model validations only if the post is Published. Thought it might be relevant. Im quite stumped so any and all ideas are welcome :) Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---