Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

claudiob (at gmail)'s latest activity

Friday, March 13 2009
2227 batches: :conditions for each are applied to each Model.find within the each ... was created in Ruby on Rails
  • claudiob (at gmail)
    claudiob (at gmail) created the ticket at 9:56 AM

    Consider the following code:

    
    # app/models/song.rb
    class Song < ActiveRecord::Base
      def self.print_pairs(name)
        Song.each(:conditions => ['name = ?', n...