On Miércoles, 2 de Junio de 2010 09:39:11 Iñaki Baz Castillo escribió: > 2010/6/2 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>: > > Are you talking about ActiveScaffold searching or rails associations? > > Perhaps it's an ActiveRecord issue, is it?
I think so, you can try with script/console: User.first.locations In rails is better to use conventions, and convention is to make associations with integer id. You can look at rails api, and try with some options (probably you will need :finder_sql option): http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#M001316 Anyway, I think you won't be able to include locations to look for users with some location, so something like this won't work even with :finder_sql: User.all :include => :locations, :conditions => "locations.name LIKE '%my home%'" -- Sergio Cambra .:: entreCables S.L. ::. Mariana Pineda 23, 50.018 Zaragoza T) 902 021 404 F) 976 52 98 07 E) [email protected] -- 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.
