Topic: Dynamic table

I have a table that i am creating dynamically but the data is not quite right


%table.table.responsive-table{:width => "100%"}                                                                                              
  %thead                                                                                                                                     
    %tr                                                                                                                                      
      - questions.each do |q|                                                                                                                
        %th{:align => "left", :scope => "row"}= q.question                                                                                   
      %th{:scope => "row" }= t(:service)                                                                                                     
      %th{:scope => "row" }=t(:message_date)                                                                                                 
      %th{:scope => "row" }=t(:status)                                                                                                       
      %th{:scope => "row" }=t(:opperator)                                                                                                    
  %tbody                                                                                                                                     
    - pickup.each do |p|                                                                                                                     
      %tr{:class => cycle("grey mzblack", "Silver mzblack")}                                                                                 
        - questions.each do |q|                                                                                                              
          %td
            = p.content 
        %td= p.service.name
        %td= p.created_at.to_s                                                                                                               
        %td= p.status                                                                                                                        
        %td= p.user.full_name  

HTML OUTPUT

<table class='table responsive-table' width='100%'>
          <thead>
            <tr>
              <th align='left' scope='row'>What's your name</th>
              <th align='left' scope='row'>What is your address</th>
              <th align='left' scope='row'>Q3</th>
              <th scope='row'>Skills</th>
              <th scope='row'><span>Message Date</span></th>
              <th scope='row'><span>Status</span></th>
              <th scope='row'><span>Opperator</span></th>
            </tr>
          </thead>
          <tbody>
            <tr class='grey mzblack'>
              <td>
                What is Q3
              </td>
              <td>
                What is Q3
              </td>
              <td>
                What is Q3
              </td>
              <td>new</td>
              <td>2012-10-01 17:19:07 -0400</td>
              <td>unread</td>
              <td>Moises Zaragoza</td>
            </tr>
</table>

I have 3 different responses for each question but its repeats the same one all the times

Re: Dynamic table

- questions.each do |q|                                                                                                             
          %td
            = p.content

just a guess  - shouldn't p.content be q.content? p is your