Image upload with Rails, React and Paperclip

Not much help is around when trying to upload an image, with react and rails, without redirecting the page after the upload. I’ve seen other website done it but this was hard for me. At this time of writing I’m still in the learning curve with JavaScript, Ruby and Rails.

My determination to learn this was to revisit Storklancer. As you can see, my knowledge was limited to add the features I wanted, now I can proceed.

This project is with Rails 5.0.0.rc1. You can use rails 4 as the main coding will be done on the front end.

Clone and install from my Github repo:

If any coding can be simplified, please let me know. Check the gemfile! Thanks.