All threads / How to change Boolean Value on specific date.

Ask A Question

Notifications

You’re not receiving notifications from this thread.

How to change Boolean Value on specific date.

Jeff Wolfram asked in Rails

I am looking to change a boolean value on a specific date automatically. How would I do that.
For example, it I have a post and would like it to publish automatically in two days at 8am. Would would I need to accomplish that? Any help would be much appreciated!

Hey Jeff,

Have you seen this episode? https://gorails.com/episodes/scheduling-posts It does this without extra complication.

Otherwise you could use a background job or cron job to toggle it, but that's probalby overkill unless you can't use the above option for some reason.

That video was exactly what I needed. Thank you so much!

Thanks for posting this article as it is helpful for me. I need one more help in finding a good dating site. Actually, I used to sit on these sites every day to find my loved one. But I did not find a satisfactory result yet. Therefore, will you please tell me a legal service like https://womenandtravel.net/bulgarian-women/ to get bulgarian girl? Please help me, guys.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 49,439+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.