title: Fetch record in ruby on rails
body: <p>I am trying to get the record on the basis of some field in ROR by this method </p>
  
  <pre><code>@indivisuals = Profile.find_by_manager_id(current_user.account.id)  
  </code></pre>
  
  <p>but when i try to iterate it , it show me some error.</p>
  
  <pre><code>undefined method each' for undefined method each' for #&lt;Profile:0x8383680&gt;
  </code></pre>
  
  <p>related code:</p>
  
  <pre><code>&lt;% if @indivisuals %&gt;
    &lt;% @indivisuals.each do |profile| %&gt;
    &lt;li&gt;&lt;a href="accounts/show/&lt;%=h profile.account_id %&gt;" style="padding-left:10px;"&gt;&lt;%=h profile.full_name %&gt;&lt;/a&gt;&amp;nbsp;&lt;a href="accounts/edit/&lt;%=h profile.account_id %&gt;" style="padding-left:10px;"&gt;Edit&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="#" style="padding-left:10px;"&gt;Delete&lt;/a&gt;&lt;/li&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Please let me know what i am doing wrong .</p>