No, its not a bug, the sql generated by the :first option returns whatever results matches it can be any record. It is the SQL that behaves this way, it is not Rails fault.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
:first and :all giving different first records | 3 | 183 | March 31, 2009 | |
Strange behaviour | 4 | 106 | November 17, 2008 | |
Bugs caused by ActiveRecord::Base#first | 5 | 148 | July 22, 2008 | |
HABTM join table quirk | 0 | 133 | December 9, 2006 | |
one item in a return list | 0 | 114 | June 20, 2007 |