How do I check how many days left until a specific date?
For example, I want to start executing some logic after 3 days from today? I will be hard coding today’s date, and subtract now from it, but how?
EDIT
What I want to do is to disable devise confirmation email at model for the next three days,
if Rails.env== 'production' && (three days left sense 1/7/2013)
devise :confirmable
end
why bother?