Skip to content

Instantly share code, notes, and snippets.

@andion
Created May 21, 2009 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andion/115186 to your computer and use it in GitHub Desktop.
Save andion/115186 to your computer and use it in GitHub Desktop.
class LifeController < ApplicationController
require 'rubygems'
require 'twitter'
layout 'life'
def show
@twitts = []
@my_twitts = []
Twitter::Search.new('bugyou').per_page(3).each do |r|
@twitts << r
end
Twitter::Search.new.from('bugyou').per_page(3).each do |r|
@my_twitts << r
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment