My question is whether the rails helper methods for handling
be nested (see examples below). I suspect not as currently I’m
getting “unknown method” if I try and use two associations in one call.
The essence of the code is
class User << ActiveRecord::Base
class Items << ActiveRecord::Base
class Reservations << ActiveRecord::Base
I’ve specified foreign_key fields etc.
What doesn’t work (and my question for the group)
In other words returning the number of reservations made against all
that are owned by a user.
In this case I will get the error "undefined method `reservations’ for
Is this supposed to work? If not how should I work around it?