I am trying to get the record on the basis of some field in ROR by this method 

```
@indivisuals = Profile.find_by_manager_id(current_user.account.id)  

```

but when i try to iterate it , it show me some error.

```
undefined method each' for undefined method each' for #<Profile:0x8383680>

```

related code:

```
<% if @indivisuals %>
  <% @indivisuals.each do |profile| %>
  <li><a href="accounts/show/<%=h profile.account_id %>" style="padding-left:10px;"><%=h profile.full_name %></a>&nbsp;<a href="accounts/edit/<%=h profile.account_id %>" style="padding-left:10px;">Edit</a>&nbsp;&nbsp;<a href="#" style="padding-left:10px;">Delete</a></li>
<% end %>

```

Please let me know what i am doing wrong .