Why am I seeing this page?
+Merb couldn't find an appropriate content_type to return, + based on what you said was available via provides() and + what the client requested.
+ +How to add a mime-type
+
+ Merb.add_mime_type :pdf, :to_pdf, %w[application/pdf], "Content-Encoding" => "gzip"
+
+ What this means is:
+-
+
- Add a mime-type for :pdf +
- Register the method for converting objects to PDF as
#to_pdf
.
+ - Register the incoming mime-type "Accept" header as
application/pdf
.
+ - Specify a new header for PDF types so it will set
Content-Encoding
to gzip.
+
You can then do:
+
+ class Foo < Application
+ provides :pdf
+ end
+
+
+ Where can I find help?
+If you have any questions or if you can't figure something out, please take a + look at our project page, + feel free to come chat at irc.freenode.net, channel #merb, + or post to merb mailing list + on Google Groups.
+ +What if I've found a bug?
+If you want to file a bug or make your own contribution to Merb, + feel free to register and create a ticket at our + project development page + on Lighthouse.
+ +How do I edit this page?
+You can change what people see when this happens by editing app/views/exceptions/not_acceptable.html.erb.
+ +