この方法でRORのいくつかのフィールドに基づいてレコードを取得しようとしています
@indivisuals = Profile.find_by_manager_id(current_user.account.id)
しかし、それを反復しようとすると、エラーが表示されます。
undefined method each' for undefined method each' for #<Profile:0x8383680>
関連コード:
<% if @indivisuals %>
<% @indivisuals.each do |profile| %>
<li><a href="accounts/show/<%=h profile.account_id %>" style="padding-left:10px;"><%=h profile.full_name %></a> <a href="accounts/edit/<%=h profile.account_id %>" style="padding-left:10px;">Edit</a> <a href="#" style="padding-left:10px;">Delete</a></li>
<% end %>
私が間違っていることを教えてください。