title: Add link to download CSV with Rails
body: <p>I have added the below code for downloading CSV:</p>
  
  <pre><code>&lt;%= form_tag(account_export_courses_list_path(@account), :method =&gt; :get) do |f| %&gt;
    &lt;a data-submit-form href="#" class="btn button-sidebar-wide"&gt;&lt;i class="icon-export-content"&gt;&lt;/i&gt; &lt;%= t(:export_course_list_link, "Export Course List") %&gt;&lt;/a&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>If I do inspect element then I am able to see the following: </p>
  
  <pre><code>&lt;form method="get" action="/accounts/1/courses/export_list" accept-charset="UTF-8"&gt;&lt;div style="margin:0;padding:0;display:inline"&gt;&lt;input type="hidden" value="✓" name="utf8"&gt;&lt;/div&gt;
        &lt;a class="btn button-sidebar-wide" href="#" data-submit-form=""&gt;&lt;i class="icon-export-content"&gt;&lt;/i&gt; Export Course List&lt;/a&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And the following code is added in my controller:</p>
  
  <pre><code>  def export_courses_list
      puts "===-----------------------------------==="
      if authorized_action(@context, @current_user, :export_course_list)
        puts "-------"
        report = CsvService.new(@context.courses.active.order(:name, :created_at).all, {
          fields:[
            {attribute_name: "name", display_name: "Course Name"}, 
            {attribute_name: "course_code", display_name: "Course Code"},
            {attribute_name: "created_at", display_name: "Created Date"}
          ]
        })
        send_data report.to_csv, :filename =&gt; "Courses.csv"
      end
    end
  </code></pre>
  
  <p>My routes are as:</p>
  
  <pre><code>match 'courses/export_list' =&gt; 'accounts#export_courses_list', :as =&gt; :export_courses_list
  </code></pre>
  
  <p>After I click on the link, "Export Course List" I should be able to download the CSV. But I am not able to see any action getting performed. Thanks in advance.</p>