ruby - how to display twitter user feed in rails with twitter gem -


im using twitter gem rails try , show 3 statuses twitter feed. i'm doing per documentation not displaying in view.

in application controller i've got down:

client = twitter::rest::client.new |config|  config.consumer_key        = "***********"   config.consumer_secret     = "***********"   config.access_token        = "***********"   config.access_token_secret = "***********"    end    def client.get_all_tweets(user)     options = {:count => 3, :include_rts => true}       user_timeline(user, options)   end     @tweet_news = client.get_all_tweets("tezzataz") 

then in view have put:

<% @tweet_news %> 

i don't errors have nothing showing in view. appreciated!

used same purpose.

<ul>   <% @tweet_news.each |f| %>     <li>       <%= f.text%>       <span><%= time_ago_in_words(f.created_at) %> ago</span>     </li>   <% end %> </ul> 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -