def self.all_with_logo
  categories = all(:include=>[:links], :conditions=>"links.logo_file_name IS NOT NULL")
end

Ruby On Find records according to r...

by https://www.google.com/accounts/o8/id?id=AItOawl_CInyr4p6Fw9fCXT3DYEGIiMyGOQDomw, August 02, 2010 19:15

I just found something.

55502f40dc8b7c769880b10874abc9d0 Talk
# link_categories has_many links
create_table "link_categories", :force => true do |t|
  t.string   "name"
...

Ruby Find records according to r...

by https://www.google.com/accounts/o8/id?id=AItOawl_CInyr4p6Fw9fCXT3DYEGIiMyGOQDomw, August 02, 2010 18:43, 1 refactoring, tagged with rails, sql, ruby, activerecord

I have a method (LinkCatego...

55502f40dc8b7c769880b10874abc9d0 Talk