Rails undefined method `where' for []:Array : i'm trying to get all the feedbacks with a  specify attribute and rails shows 

> undefined method `where' for []:Array

the code that i'm using is:

    @average_customer_rating = feedbacks.where('buyer_feedback_date is not null')

someone please know why i'm can not use where on a array?