title: How i can display in view the streaming Twitter GEM configured in my controller
body: <p>i try to display in rails view a streaming Twitter from Gem Twitter. </p>
  
  <p>I configure my controller : welcome_controller.rb</p>
  
  <pre><code>class WelcomeController &lt; ApplicationController
  def index
  require 'twitter'
  client = Twitter::Streaming::Client.new do |config|
  config.consumer_key        = "Hidden"
  config.consumer_secret     = "Hidden"
  config.access_token        = "Hidden"
  config.access_token_secret = "Hidden"
  end
  
  client.sample do |object|
  @tweets = object.text if object.is_a?(Twitter::Tweet)
  end        
  end
  end
  </code></pre>
  
  <p>And my view like that : index.html.erb</p>
  
  <pre><code>&lt;% @tweets.each do |element| %&gt;
    &lt;li&gt;&lt;%= element %&gt;&lt;/li&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>But nothing appear on my view.</p>
  
  <p>Thank you very much for your help.</p>