Permalink
Browse files

trying current trends again

  • Loading branch information...
1 parent f82e8f8 commit ed09e3888dd177d2e9f94e76af8c4b39a98171dd @moomerman moomerman committed Dec 30, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 views/home.erb
View
@@ -10,7 +10,7 @@
<p>Created and maintained by <a href="http://moocode.com/foo">Richard Taylor</a> (<a href="http://twitter.com/moomerman">@moomerman</a>). Any comments/suggestions welcome</p>
<h2>Current Trends</h2>
-<%= @trends.inspect %>
+<%= @trends['trends'].to_a.first.last.collect{|x| "<a href='/search?q=#{URI.encode(x['query'])}'>#{x['name']}</a>"}.join(', ') %>
<h2>Public Timeline</h2>
<%= partial('timeline', :locals => {:tweets => @tweets}) %>

0 comments on commit ed09e38

Please sign in to comment.