Rails undefined method `where' for nil:NilClass

 

undefined method `where' for nil:NilClass

コード:

          - @questions.where(user_id: current_user.id).where(id: id).each do |question|