RailsCasts Pro episodes are now free!
Learn more or hide this
def index @tasks = Task.find(:all, :conditions => ["name LIKE ?", "%#{params[:query]}%"]) end