0
我必須有屬於該項目的會議模式:思維 - 獅身人面像分組錯誤
class Project < ActiveRecord::Base
has_many :meetings
end
class Meeting < ActiveRecord::Base
belongs_to :project
define_index do
join project
indexes agenda
indexes project.name. :as => :project_name
end
end
我試圖與分組搜索:
Meeting.search("stuff", :group_by => 'project_id', :group_function => :attr)
我收到以下錯誤:
group-by attribute 'project_id' not found
有什麼建議嗎?
很多謝謝。
工作!!! – alexs333 2012-07-21 11:34:25