Conrad Taylor wrote: [...] > I agree with Fred's approach because if you're testing for emptiness, > you > should do the least amount of work to determine it.
Excellent point. > For example, > > Model.first => will create 1 or no objects > Model.all => will create table size of N or no objects > Better still: Model.count => will create one Numeric and that's all! > Good luck, > > -Conrad Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

