title: Having difficulty with a search and follow, using twitter gem and ruby
body: <p>So in PHP, this code works live, done months ago.</p>
  
  <pre><code>$tweetsToSlippy = $connection-&gt;get('http://search.twitter.com/search.json', array('q' =&gt; $query, 'since_id' =&gt; $since_id))-&gt;results;
  foreach ($tweetsToSlippy as $tweet) 
  {
      $user_id = $tweet-&gt;from_user;
      echo "adding $user_id &lt;br&gt;\n";
      $connection-&gt;post('friendships/create', array('screen_name' =&gt; $user_id));  
  }
  </code></pre>
  
  <p>I am trying to do the same with Ruby. I can reply, I can update, but I lack the understanding of trying to accomplish what I did in the above code, which makes an API call and retrieves Json list and then pulls users from it.</p>
  
  <pre><code>def searchAdd
      topics = ['topic1', 'topic2']
      userBank = []
      topics.each do |topic|
          userBank &lt;&lt; Twitter.search(topic, :result_type =&gt; "recent")
      end
      userBank.each do |user|
      Twitter.follow(user)
          puts user
      end
  end
  </code></pre>
  
  <p>I'm lost, help!</p>