Comment puis-je obtenir la date d'hier?
peut-être:
@get_time_now = Time.now.strftime('%m/%d/%Y') / 86400
ou
@get_time_now = Time.now.strftime('%m/%d/%Y') - 1.day
ou
@get_time_now = Time.now. / 86400
86400 = 1 jour, non? (60 * 60 * 24)