Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5935797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:18:23+00:00 2026-05-22T15:18:23+00:00

This seems to be a common question, but I’ve yet to find a very

  • 0

This seems to be a common question, but I’ve yet to find a very ‘detailed’ answer – I’m looking for the best way to allow users to preview the form they are going to submit, before submitting it.

Obviously, storing this in the db isnt the best option (which is what I’m doing right now) because there has to be a process to remove it, and that has a lot of scenarios.

Details
I don’t want to show the user the edit action, I want to show the user the show action, and at the top and bottom of the screen have a Publish button.

My questions:

  1. How would you go about storing the information from the form into a session (looking for some controller code)
  2. How would you know in the show action that you are displaying a preview, rather than a ‘real’ object. (or would you have a separate action for preview?) (looking for some controller/view code here)
  3. How would you remove the session data once the user is ‘done’ with it?

I think that storing in the database has the same issue with storing it in the session, the cleanup, am I wrong? What is the best way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:18:24+00:00Added an answer on May 22, 2026 at 3:18 pm

    You can consider unpublished records created more than few days ago as obsolete (user must know about that policy). Rake task may be executed via cron once a day or more frequently. Also, you can implement some separate rake task to notify users about pending unpublished records, which will be removed soon. Drafts is a great idea and may be untouched if you like at all or for a longer time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This seems like it'd be a common question, but I cannot find it. Perhaps
I know this is a very common question, but I could not find the
This seems like a repeated question but i'm not able to get my answer.
This seems to be primary Question. but i search it and i couldn't find
This seems like the simplest Git question, but I can't find ANYTHING on it.
I know this has probably been answered as it seems a common question but
It seems this is a common question/problem but despite checking out a number of
I know this a common question but everything I found seems to remove white
I know its a very common question, but seems like my situation is a
Seems like this would be a common question, though I could not find it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.