Skip to content

Commit

Permalink
Updating README
Browse files Browse the repository at this point in the history
  • Loading branch information
aubreyrhodes committed Dec 13, 2011
1 parent a14d612 commit 026b1ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -32,7 +32,7 @@ Configure
```ruby
t.integer :attachment_ipaper_id
t.string :attachment_ipaper_access_key
````
```

Scribd-CarrierWave will now automatically upload new attachments to Scribd as a private document, and save the id and access_key on the model.

Expand All @@ -44,6 +44,10 @@ To display multiple documents on the same page, you need to pass in a unique id

````<%= attachment.display_ipaper({id: '_attachement1'}) %>````

To pass in params to the Scribd javascript options (listed [here](http://www.scribd.com/developers/api?method_name=Javascript+API#parameters))

````<%= attachment.display_ipaper({height: 700, width: 600}) %>````

To get the link to the fullscreen document:

````<%= attachment.fullscreen_url %>````

0 comments on commit 026b1ea

Please sign in to comment.