title: undefined method `shuffle' for true:TrueClass
body: <p>The similar user random order <code>shuffle</code> is no longer working from the controller. Can someone assist me with the code? </p>
  
  <p>User model:</p>
  
  <pre><code>  def similar
        arr = User.where(:gender =&gt; self.gender).where.not(:id =&gt; self.id)
        arr.select{ |c|
            if !c.location.nil? 
                return c.location.state == self.location.try(:state)
            else
                return false
            end
        }
    end
  </code></pre>