You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am able to reproduce the issue, but I don't see how it is better to not register the mime type.
If you go to a random URL and end it with .gif or .json you have the same issue, right?
There's a longstanding open issue on Rails for this that has some creative ways to prevent this from happening, but I think I'm with you that requesting a format you don't implement on each action shouldn't raise an ActionView::MissingTemplate error.
Are you not registering it in your app? How do you handle serving pdf's without it, as octet-stream downloads?
I'm open to suggestions or pull requests for the configuration initializer if you think that's the best route to take, but I would think it should be enabled by default.
Right now
wicked_pdf/lib/wicked_pdf/railtie.rb
Line 40 in ed22680
.pdf
, it will result in a 500 error.I humbly request that you make the registration of PDF a choice.
The text was updated successfully, but these errors were encountered: