Currently, I am working on a Rails 3.2 application where I utilize a partial called _invoice_pdf.html.erb
to showcase an invoice. This same partial is also used to generate an invoice PDF. However, there seems to be an issue with wicked pdf as it does not include the CSS when creating the PDF. Despite this, the appearance of the PDF is still acceptable.
My goal now is to disable the CSS when displaying the partial on the screen itself.
Does anyone know if there is a specific command or method to exclude the CSS from being applied to a particular view (partial)?
I truly appreciate any assistance provided!