title: Ruport - undefined method `each' for "":String
body: <p>I am following the first example in this tutorial: <a href="http://ruportbook.com/printable_documents.html" rel="nofollow noreferrer">http://ruportbook.com/printable_documents.html</a>, but I'm getting undefined method `each' for "":String all the time, I created a new file with this code:</p>
  
  <pre><code>class MultiTableController &lt; Ruport::Controller    
    stage :multi_table_report    
    class PDF &lt; Ruport::Formatter::PDF    
      renders :pdf, :for =&gt; MultiTableController    
      build :multi_table_report do
        data.each { |table| pad(10) { draw_table(table) } }
        render_pdf
      end    
    end    
  end
  </code></pre>
  
  <p>Then, in an existing controller named workers_controller.rb I have the next action:</p>
  
  <pre><code>  def index_report
      t1 = Table(%w[a b c]) &lt;&lt; [1,2,3] &lt;&lt; [4,5,6]
      t2 = Table(%w[a b c]) &lt;&lt; [7,8,9] &lt;&lt; [10,11,12]
      pdf = MultiTableController.render_pdf(:data =&gt; [t1,t2])
    end
  </code></pre>
  
  <p>Then, I'm getting this error on my browser:</p>
  
  <pre><code>undefined method `each' for "1":String
  </code></pre>
  
  <p>I have tried many others examples and I get the same error.</p>
  
  <p>Some help?</p>