I'm sorry to ask a stupid question. I've got an array that I want to populate with two similar queries to my database.
@experience_items = @user.experience_items.where(current: true).order(start_date: :desc)
@experience_items << @user.experience_items.where(current: false).order(end_date: :desc)
This is currently returning an ActiveRecord::AssociationRelation, which I can't iterate through with <% @experience_items.each do |item| %>
I know this is basic, but I just don't understand it. Why can't I iterate through @experience_items?