products_controller.rb z @product = Product.new(product_params) na @product = Product.create(product_params) oraz params :avatar