twitter bootsrap classes not imported in wicked_pdf

114 views Asked by At

I have install gem wicked_pdf for my app. For pdf generation in layout file "pdf.html.erb" include all css files

<%= Rails.application.assets.find_asset('user.css.scss').to_s.html_safe %>
<%= Rails.application.assets.find_asset('bootstrap_and_overrides.css.less').to_s.html_safe %>
<%= Rails.application.assets.find_asset('application.css').to_s.html_safe %>

It include a user.css.scss classes but not "twitter-bootstrap".

1

There are 1 answers

0
sukanta On
 <%= wicked_pdf_stylesheet_link_tag "application",media: 'all', 'data-turbolinks-track' => true %>

Hope this will work