Search for tweets by a search term in one function call. Uses the Twitter API underneath. Also find all tweets by user. This doesn't use the API, because the API returns only what Twitter considers the "most popular" tweets in many cases. Using this gem will return everything that you can see by going to the Twitter web site for a user. User search probably shouldn't be relied upon for a production system, as Twitter can change the structure of their web page at any moment, and if so, this will not work until I update it.
Gemfile gem 'twitterscour', '~> 0.2.1'
install gem install twitterscour