I'm really struggling to find some information about extracting
relevant information from my hash output from twitter.
My model contains:
def timeline
@timeline = client.home_timeline
end
And my view:
<%= @user.twitter_token.timeline.each do |t| %>
<%= t.text %>
<br>
<% end %>
I was hoping to extract just my text from the hashie but it doesn't
quite work... I get my tweets on separate lines which is great,
followed by the hash again...
[<#Hashie::Mash contributors=nil coordinates=nil created_at="Wed May
04 18:57:32 +0000 2011" favorited=false geo=nil id=65852579048980480
id_str="65852579048980480" in_reply_to_screen_name=nil
in_reply_to_status_id=nil in_reply_to_status_id_str=nil
in_reply_to_user_id=nil in_reply_to_user_id_str=nil place=nil
retweet_count=0 retweeted=false source="web" text="what's happening?"
truncated=false user= ...
How on earth can I stop this?!
Thanks,
Simon
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.