search for: days_from_now

Displaying 1 result from an estimated 1 matches for "days_from_now".

2006 Mar 31
4
Date magic?
Hi. When I read Dave and Davids excellent book "Agile Web Development with Rails" the first time, I was particularly impressed with the following statement: 1.day.from_now It was used in a test class to set the date of tomorrow dynamically. Since it was enclosed in in ERb tags, I assumed this was a normal ruby statement, but when I tried it in my irb, i get the following error: