Browse files

Home Timeline

  • Loading branch information...
1 parent 088ab79 commit 9e60989f0d088a2644d3f738b929e4760258dfc6 @rbin rbin committed Dec 15, 2012
View
BIN TwitterHipster/.DS_Store
Binary file not shown.
View
BIN TwitterHipster/app/.DS_Store
Binary file not shown.
View
4 TwitterHipster/app/models/tweets.rb
@@ -13,8 +13,8 @@ class Tweets < Couchbase::Model
view :by_id, :by_timestamp
- def self.get_latest
- tweets = client.statuses.user_timeline? :screen_name => HIPSTER # hit the API
+ def self.get_timeline
+ tweets = client.statuses.home_timeline? :screen_name => HIPSTER #http://api.twitter.com/1/statuses/home_timeline.json
tweets.each do |t|
created = DateTime.parse(t.created_at)
tweet_id = t.id_str.to_i
View
1 TwitterHipster/app/views/layouts/application.haml
@@ -7,3 +7,4 @@
= csrf_meta_tags
%body
= yield
+ = render :partial => "foot"
View
2 TwitterHipster/app/views/layouts/foot.haml
@@ -0,0 +1,2 @@
+%script{:type => "text/javascript",
+ :src => "jquery.isotope.min.js"}

0 comments on commit 9e60989

Please sign in to comment.