Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wicked_pdf changes Content-Type to application/pdf if save_only is true #492

Open
fiftin opened this issue Feb 12, 2016 · 0 comments
Open

Comments

@fiftin
Copy link

fiftin commented Feb 12, 2016

I try render html view after I rendered pdf to file. But received error becouse Content-Type changed to application/pdf. I need explicit specify content_type during rendering to fix this issue.

def send_mail
  render pdf: 'product-list', save_only: true, save_to_file: PDF_FILENAME
  render 'product_list/send_mail' #, content_type: 'text/html'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant