> The code you posted is fine, it just depends where you put it: that is why i named the thread "no sql in the controller". :)
> - in a view: super bad > - in the controller: not so good i agree, i just didn't see any mention to this guideline in the books i consulted or in the AR source code comments. > - in a model (or these days probably replaced with a named scope): > good i'll check this strategy, thanks. -- 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---