I have a has_and_belongs_to_many relationship:
class Staff < ActiveRecord::Base has_and_belongs_to_many :services
class Service < ActiveRecord::Base has_and_belongs_to_many :staffs
and I have a table called 'services_staffs' with columns service_id and staff_id
But when I do Services.find(:all) it's not returning the staffs (I can see this by debugging with 'inspect') And when I do @services.staffs (where @services is the result of Services.find(:all)) it says 'undefined method `staffs''
Any idea what the problem could be? Thanks!