Untitled
3 years ago in Plain Text
params = product_params
params[:price] = params[:price].to_f * 100
@product = Product.new(params)