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 %>
<% 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…
Don’t use <%= here - it will dump the result of the expression (which
in the case of .each is the entire collection that was iterated over)
into the view, which isn’t what you want
Many thanks for the response. I’ve changed my view to this and I now
can’t see the recent tweets but am left with the hash still. Why am I
finding this so complicated!?!
<%= @user.twitter_token.timeline.each do |t| %>
<% t.text %>
Many thanks for the response. I’ve changed my view to this and I now
can’t see the recent tweets but am left with the hash still. Why am I
finding this so complicated!?!