README.md in paperclip-cloudinary-1.3.0 vs README.md in paperclip-cloudinary-1.3.1
- old
+ new
@@ -47,15 +47,31 @@
This will enable the
[Cloudinary gem](https://github.com/cloudinary/cloudinary_gem) to pick
up your configuration automatically.
-To use in your model, add the following options for `storage` to `has_attached_file`
+To use in your model, add the following option for `storage` to `has_attached_file`:
```ruby
has_attached_file :image,
:storage => :cloudinary
```
+
+You should specify the Paperclip `path` pattern that you would like to
+use to store and access your saved attachments. The value should be URL-friendly,
+should NOT begin with a forward slash, and, aside from forward slashes, can only
+contain alphanumeric characters, dashes (-), periods (.) and underscores (\_).
+The `path` can be specified in your default Paperclip options or
+via `has_attached_file`:
+
+```ruby
+has_attached_file :image,
+ :storage => :cloudinary,
+ :path => ':id/:style/:filename'
+```
+
+Failure to supply a `path` in either of these places may result in the default path
+being used, which could cause an `InfiniteInterpolationError`.
If you have put your cloudinary config file at a location other than
config/cloudinary.yml (which is ill-advised), you can specify where the
credentials are located by specifying the `cloudinary_credentials`
option: