On Miércoles, 12 de diciembre de 2012 05:20:24 Atastor escribió: > Give AS and RecordSelect (Sergios branch) current masters; I can't bring > the following config to live: > > class AgeClassDisciplinesController < ApplicationController > record_select :include => [:age_class, :discipline], :search_on => > ['age_classes.keywords', 'disciplines.keywords'] > > Typing in the rs-form-field only results in: > > (0.4ms) SELECT COUNT(*) FROM "age_class_disciplines" WHERE > ((age_classes.keywords LIKE 'M7%' OR disciplines.keywords LIKE 'M7%')) > SQLite3::SQLException: no such column: age_classes.keywords: SELECT > COUNT(*) FROM "age_class_disciplines" WHERE ((age_classes.keywords LIKE > 'M7%' OR disciplines.keywords LIKE 'M7%')) > > Apparently the :include ist silently ignored, as there is no join in the > sql statement ... everything else is working fine, i.e. using rs to search > for plain attributes etc. > > Anybody sees anything obviously wrong? > > Regards > Michael
:include is not used in count query, never was used. You must define record_select_includes, which is used in both queries, count and select -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.
