Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Doc fix

  • Loading branch information...
commit e2eb2279800f14df8cdbd1261cbdb67af84919b2 1 parent 4898a3a
Daniel Tenner authored
Showing with 9 additions and 5 deletions.
  1. +9 −5 README.textile
View
14 README.textile
@@ -21,13 +21,17 @@ class FileReference < ActiveRecord::Base
end
</pre>
-In your controller, add an "extract_upload" call before processing the upload, to ensure that your code works whether or not nginx is active:
+In your controller, add an <code>extract_upload</code> call before processing the upload, to ensure that your code works whether or not nginx is active:
<pre>
-def upload
- extract_upload :file_reference
- FileReference.create(params[:file_reference])
-end
+class MyController < ApplicationController
+ include NumFu::UploadExtractor
+
+ def upload
+ extract_upload :file_reference
+ FileReference.create(params[:file_reference])
+ end
+end
</pre>
And add the following to your nginx config:

0 comments on commit e2eb227

Please sign in to comment.
Something went wrong with that request. Please try again.