Skip to content

Commit 009bcc9

Browse files
author
Nishat
committed
param name corrected
1 parent 17ffc68 commit 009bcc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/uploads_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def create
4545
# lets bring this to the front
4646
upload_data = { "upload" => params[:upload]["upload"][0] }
4747

48-
@upload = Upload.new(upload)
48+
@upload = Upload.new(upload_data)
4949
respond_to do |format|
5050
if @upload.save
5151
format.html {

0 commit comments

Comments
 (0)