It seems like there may be a rails method for the following situation: model User has_many :appointments
model Appointment has_one :instruction belongs_to :user model Instruction belongs_to :appointment I would like to do User.Appointments.Instruction and return an array with instruction objects but no go. I am doing the following and wondering if there is a cleaner way? appointments = logged_in_user.appointments @instructions = Array.new appointments.each do |appointment| @instructions.push(appointment.instruction) end Thanks for any help/input. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---