This project is archived and is in readonly mode.
Documentation for ActiveRecord#find(:select)
Reported by David Röthlisberger | July 31st, 2008 @ 06:49 PM | in 2.x
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').
Comments and changes to this ticket
-
Pratik August 3rd, 2008 @ 01:58 PM
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.
-
Pratik August 3rd, 2008 @ 01:59 PM
- State changed from new to resolved
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>