I need do to simple loading of files to public folder. There are many gems, but all them (and tutorials) show how to do this using model etc… But i need simple chose file in view, and send it to controller, which generate random name and save it to public folder, without any model and so over. Simple chose – upload.
Share
You can use carrier wave without active record, or
You can write manually to to public folder,you can read file using
params[:file_name].tempfileit’s rack multipart object you can inspect by putting debugger or pry