title: Customising ActiveAdmin CSV
body: <p>I am using Activeadmin and would like to export the associated model values in the same CSV file. I am able to get the result but its not in a proper format.
  I want all the question to be the column name and the answer for that to be displayed in the row. can anyone help me?</p>
  
  <p>Papplication.rb</p>
  
  <pre><code>ActiveAdmin.register Papplication do
   csv do
    column "Questions" do |papp|
      @questions.map do |question|
        question.question_text
      end
    end
    column "Answers" do |papp|
      @questions = Question.where(:program_id=&gt;papp.program_id)
      @answers = Answer.where(:question_id =&gt; @questions.ids,:startup_id =&gt; papp.startup_id)
      @questions.map do |question|
          Answer.where(:question_id =&gt; question.id, :startup_id =&gt; @startup.id).first.answer_text
      end
    end
  end
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ZgyHB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZgyHB.png" alt="Downloaded csv looks this"></a></p>
  
  <p><a href="https://i.stack.imgur.com/6Pdgo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6Pdgo.png" alt="Expected Result"></a></p>