Displaying 1 result from an estimated 1 matches for "ap_requirements".
Did you mean:
__requirements
2006 Apr 20
1
has_many.count not accepting options hash
has_many.count does not seem to support an options hash like
ActiveRecord::Base.count does.
Example:
>> AcademicProgram.find(:first).course_requirements.count :conditions
=> "courses.name LIKE ''a%''", :include => :course
=> 40
>> ap.ap_requirements.count :conditions => "courses.name LIKE ''a%''",
:include => :course
ActiveRecord::StatementInvalid: Mysql::Error: #42000You have an error in
your SQ
L syntax; check the manual that corresponds to your MySQL server version
for the
right syntax to use near '&...