In Rails 3 , it's possible to write a query like account_type = AccountType.where(:membership_fees => 0; :locale => {:code => I18n.locale}).first to find records when membership_fees == 0 ( AccountType belongs to Locale)
is it possible to write the same query for membership_fees > 0 or should I write as in Rails 2 a pure condition ? Client.where("membership_fees > ? AND memberships.locale = ?", 0 ], I18n.locale) thanks for your feedback -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.