Permalink
Browse files

Updated README

  • Loading branch information...
1 parent 69ff868 commit 48b58119494d759a2a6b889b7ac0dde7348d11ee @yumitsu yumitsu committed Jul 13, 2012
Showing with 15 additions and 2 deletions.
  1. +15 −2 README.md
View
@@ -56,11 +56,11 @@ end
* Put a form helper into your views:
```erb
-<%- form_for(@order) do |f| %>
+<%= form_for(@order) do |f| %>
...
<%= f.uploadcare_field :file %>
...
-<%- end %>
+<% end %>
```
* Require a widget library in your `application.js` file:
@@ -132,6 +132,19 @@ record.upload.removed?
record.upload.keep # to force keep or to keep it manually with delayed_job etc.
```
+## Integration with other libraries
+
+### SimpleForm
+
+Uploadcare gem simply integrates into SimpleForm with custom builder:
+
+```erb
+<%= simple_form_for @post do |f| %>
+ <%= f.input :upload, :as => :uploadcare %>
+ ...
+<% end %>
+```
+
## Roadmap
We're looking into possibility to drop third preparation step to save you from messing with views, but it will be done a bit later.

0 comments on commit 48b5811

Please sign in to comment.