View Single Post
  #3 (permalink)  
Old March 26th, 2007, 11:06 AM
divnavoda divnavoda is offline
Registered User
 
Join Date: Mar 2007
Location: Madison, WI, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

you've made a good observation about the lack of 'game' action. Take it a step further and ask, so what actions are available? You will realize that the navigate to http://localhost:3000/play/game is a typo. It should have been http://localhost:3000/play/now.

Also, check the address line in the accompanying figures, they show the real addresses (no typos there, I think at least).

There is nothing wrong with the application; it works as supposed, you do not need to do any tweaking.

Also, when testing it, you do not need to change system time, it takes considerably longer to change system time back and forth then changing the values of the time range inside the code itself. :)

By the way, the if statement inside the check_time method looks better this way:

(9..17).include? Time.now.hour

divnavoda