Michael Koziarski wrote:
But putting that logic into your model, where it belongs, keeps it similarly clean
def searchpage @results = Model.search params[:q] end
Have to disagree here. Searches can have a lot of UI stuff that should stay out of the model. (Same with similar ajaxian examples.)