Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

How to change Boolean Value on specific date.

Rails • Asked by Jeff Wolfram

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? 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!

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 29,763+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.