Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added an extra symbol for print method

If you don't supply the content_type symbol in options hash, you will get a nil response, I had to debug the code to find out about this. Figured the README's example should include this to help newcomers.

Thanks for the great work BTW!
  • Loading branch information...
commit bd0629aa37fe9f1bea3a66913cfc05394618c443 1 parent b58f754
@owyongsk owyongsk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.md
View
2  README.md
@@ -71,7 +71,7 @@ You then ask these objects to print things like this:
printers = CloudPrint::Printer.all # this will return a list of printers.
my_printer = CloudPrint::Printer.find('printer_id') # this will get a printer with a specific id.
-my_printer.print(content: "<h1>Hello World</h1>") # the :content option can also take a File object as a parameter, CloudPrint accepts HTML and PDF files.
+my_printer.print(content: "<h1>Hello World</h1>", content_type: "text/html") # the :content option can also take a File object as a parameter, CloudPrint accepts HTML and PDF files.
```
Here's where the second kind of object comes in. If your content has been
Please sign in to comment.
Something went wrong with that request. Please try again.