user2886057
user2886057

Reputation: 735

Setting up mime_types.rb in rails

I am trying to use Prawn in RoR 4.2.0. I am trying to add the following to my mime_types file:

Mime::Type.register “application/pdf” , :pdf

However, the server does not start with the following error:

/Users/Bob/Development/appname/config/initializers/mime_types.rb:7:in `<top (required)>': undefined local variable or method `“application' for main:Object (NameError)

Any thoughts?

Upvotes: 1

Views: 767

Answers (1)

orde
orde

Reputation: 5273

Replace the curly quotes in “application/pdf” with straight quotes (i.e. "application/pdf")

Upvotes: 2

Related Questions