このようなモデルが2つあります
class Stage
include DataMapper::Resource
property :id, Serial
belongs_to :staff
end
class Staff
include DataMapper::Resource
property :id, String, :key => true
property :full_name, String
property :email, String
has n, :stages
end
特定のスタッフが割り当てられているすべてのステージを見つけようとしています。私はもう試した @stages = Stage.all(Stage.Staff => 'TM')
私は何が間違っているのですか?