I’m very new in ruby on rails. I’m stuck with a problem. I want to make a file upload functionality through which I can upload any kind of file (text,image etc.).
My controller
Another great option would be carrierwave, which is very simple to install and the guide on github can have you up and running in a matter of minutes. Add it to your gemfile then run bundle install