We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17ffc68 commit 009bcc9Copy full SHA for 009bcc9
app/controllers/uploads_controller.rb
@@ -45,7 +45,7 @@ def create
45
# lets bring this to the front
46
upload_data = { "upload" => params[:upload]["upload"][0] }
47
48
- @upload = Upload.new(upload)
+ @upload = Upload.new(upload_data)
49
respond_to do |format|
50
if @upload.save
51
format.html {
0 commit comments