search for: appointment_book

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

2007 Oct 07
22
Differences in execution between console and app
...ll_by_date(date)) end end end The line with yield is throwing the error: undefined method ''each'' for #<Date: 4908761/2,0,2299161> A YAML dump of date yields: >>> DATE: --- 2007-10-07 (CLASS: Date) However, a very similar line of code works fine in console: appointment_book.appointments.find_all_by_date(Date.today) # [] The empty array is expected. The kicker: if I call #to_s on date inside my method, it works. But I shouldn''t have to call #to_s. Any ideas? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ Yo...