title: Comparing two arrays and not getting expected output in rails console
body: <p>I have the following controller action that builds two arrays. </p>
  
  <pre><code>current_event = Event.find(params[:event_id])
  
  campaign_titles = Relationship::CampaignTitleRelationship.where(campaign_id: current_event.campaign_id)
  
  campaign_title_ids = Array.new
  
  campaign_titles.each do |title|
  
    campaign_title_ids &lt;&lt; [title.title_id]
  
  end
  
  event_title_ids = Array.new
  
  params[:title_ids].each do |title|
  
    event_title_ids &lt;&lt; [title]
  
  end
  </code></pre>
  
  <p>The two arrays output like this </p>
  
  <pre><code>[["6556"], ["9359"], ["11319"], ["12952"], ["14389"], ["14955"], ["16823"]]
  [[6556], [9359], [11319], [12952], [14389], [14955], [16823]]
  </code></pre>
  
  <p>I'm trying to compare these two arrays using the - symbol, but am only getting an output of each id, instead of what I expect (nothing) since both arrays contain the same items. </p>
  
  <p>I can see that the first array has quotations around each key inside the bracket.  The second does not.  How do I compare these two arrays?</p>