upgrading to Rails 4: fixing typo (order instead of where)