title: undefined method `user_id' for #<ActiveRecord::Relation:0x007f8da82da248>
body: <p>I am error in the 2nd line of the code here, I have a column user_id in the Estate table. What am I doing wrong here ?</p>
  
  <pre><code>myestate = Estate.where(:Mgmt =&gt; current_user.Company)
  @managements = User.where(:id =&gt; myestate.user_id)
  </code></pre>