55 Followers
·
Follow

Image for post
Image for post

Using Active Storage in a pure rails app is pretty straightforward but, when we switch over to a Rails API with a detached front-end (such as a React app), it becomes a bit more tricky. There are a lot of articles and blogs floating around about Active Storage in a pure rails app or exclusively how to utilize Active Storage on a detached front-end.Therefore, this article will try to be a comprehensive, quick start guide to setting up Active Storage in the back-end and sending data from a detached front-end that Active Storage can read.

From the Back-End

Let’s start with setting up Active Storage in the back-end and connecting the models that should have files attached to them. Start by installing Active Storage via the command…

About

Myung Kim

Full stack web developer with a passion to reintroduce humanistic elements in tech. Experienced in Ruby on Rails, JavaScript, and React and a background in Art.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store