Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Doc fix
  • Loading branch information
Daniel Tenner committed Mar 15, 2009
1 parent 4898a3a commit e2eb227
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.textile
Expand Up @@ -21,13 +21,17 @@ class FileReference < ActiveRecord::Base
end end
</pre> </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> <pre>
def upload class MyController < ApplicationController
extract_upload :file_reference include NumFu::UploadExtractor
FileReference.create(params[:file_reference])
end def upload
extract_upload :file_reference
FileReference.create(params[:file_reference])
end
end
</pre> </pre>


And add the following to your nginx config: And add the following to your nginx config:
Expand Down

0 comments on commit e2eb227

Please sign in to comment.