I'm not sure what i'm missing, but my css doesn't seem to be working along side wicked_pdf. I have an image linked in my file, which works, but the styles are missing.
Gemfile
gem 'wicked_pdf'
gem 'wkhtmltopdf-binary'
Controller
format.pdf do
render pdf: "day_report",
template: 'day/day_report',
page_size: 'A4'
end
application.html.erb
<head>
<title>Page Title</title>
<%= wicked_pdf_stylesheet_link_tag "styles" %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>
day_report.pdf.erb
<%= wicked_pdf_image_tag( 'logo.jpg', height: '100', width: '100') %>
<div class="page-header">
Day Report
</div>
styles.css
.page-header {
padding: 40px 0;
background-color: red;
text-color: #fff;
}