Skip to content

Commit

Permalink
Doc fix
Browse files Browse the repository at this point in the history
  • 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
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e2eb227

Please sign in to comment.