I have a Rails 3.2 app using Bootstrap and Wicked_pdf. I'm trying to page break the pdf after each @costproject.
Gems:
gem 'wicked_pdf'
gem 'wkhtmltopdf-binary'
I read this post: Rails WickedPDF Page Breaks
So, I tried it.
This is in my CSS:
.page-break {
  display:block;
  clear:both;
  page-break-after:always;
}
And this is in projects.pdf.erb:
<% @costprojects.each do |costproject| %>
    <div class="page-break"></div>
    <div id="pdfbody">
      <table class="table table-striped">
...
But, the page breaks don't happen.
Thanks for the help!
 
    