TODOs added

This commit is contained in:
Christoph Haas 2015-04-19 11:33:41 +02:00
parent 3d297b0cb6
commit 86e0a62c24
2 changed files with 4 additions and 0 deletions

View file

@ -55,6 +55,8 @@ class PackagesController < ApplicationController
@package = Package.find_by(name: params[:name])
params[:screenshot][:image].each do |img|
@package.screenshots.create(image: img)
# TODO: add logging
# TODO: what do we do if the user uploads an invalid image? tell them?
end
redirect_to package_path