<% content_for :head do %> <%= javascript_include_tag "graphing" %> <% end %> <% if @agent.memory[:data] && @agent.memory[:data].length > 0 %>

Recent Trends

<% @agent.memory[:data].each.with_index do |(group_name, data), index| %>
<%= link_to group_name.to_s, "https://twitter.com/search?q=#{CGI::escape group_name.to_s}", :target => "blank" %>
<% end %> <% else %>

No data has been received.

<% end %>