search for: appointmentbook

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

Did you mean: appointment_book
2007 Oct 07
22
Differences in execution between console and app
class AppointmentBook < ActiveRecord::Base has_many :appointments def lookup(date, look_ahead = 27) return nil unless block_given? (date..date + look_ahead).each do |date| yield(date, appointments.find_all_by_date(date)) end end end The line with yield is throwing the error: undefined met...