The where method on any ActiveRecord model can be used to generate SQL of the form WHERE column_name IN (a, b, c, ...). This is achieved by passing an array as argument.
As a simple example, we will use the following model:
class Person < ActiveRecord::Base
#attribute :first_name, :string
...