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.

This project is archived and is in readonly mode.

Documentation for ActiveRecord#find(:select)

#735

You can't pass an array of column names to the :select option of ActiveRecord#find -- see http://dev.rubyonrails.org/ticke...

This initially confused me and the documentation didn't help. This documentation patch clarifies that you should pass a string (e.g. :select => 'id, name').

Reported by David Röthlisberger · July 31st, 2008 @ 06:49 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Pratik
    Pratik

    Pushed to docrails. You can PM me (lifo) at github and I'll add you to docrails so that you can commit changes yourself, in case you want to make contributions to docs in the future :)

    Thanks.

    August 3rd, 2008 @ 01:58 PM

  2. Pratik