hello. i just checked Chad Fowler's post "20 Rails Development No-No's" and one guideline caught my attention. it says:
"Nothing that looks at all like SQL should go into a controller, view, or helper." it really came as a surprise to me as Rails itself seems to go against such practice by its AR 'conditions' option, which most of the times contains SQL code. like in this example from Rails Cookbook: Employee.find :all, :conditions => ['hire_date > ? AND first_name = ?', '1992', 'Andrew'] does anyone have an opinion on this? * complete post at: http://www.chadfowler.com/2009/4/1/20-rails-development-no-no-s -- 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 -~----------~----~----~----~------~----~------~--~---