标签: ruby-on-rails-3 activerecord has-many
我正在使用Rails 3,我有以下内容:
class Artist < ActiveRecord::Base has_many :releases # more code end class Release < ActiveRecord::Base belongs_to :artist # more codez end
如果我想选择所有没有发布的艺术家,如果不对SQL进行硬编码,我该怎么做呢?