Problems saving an uploaded image to an app folder

this helped me get files into the file system using:"#{RAILS_ROOT}/path/to/storage/#{new_filename}.jpg", "wb")
do |f|

then you can access all the files from within your app instead of
writing to your local disk

and of course you can change the file extension to take any kind of