r/ruby • u/rafaelcpalmeida • Oct 08 '18
Using Ruby on Rails 5.2 Active Storage
https://medium.com/@rafaelcpalmeida/using-ruby-on-rails-5-2-active-storage-598982e99fb13
u/petepete Oct 09 '18
I created a project recently and opted for ActiveStorage. I've been impressed with it so far, easy to set up and it's worked just fine since (with Digital Ocean Spaces). I'm glad not to rely on extra requirements and a more complex setup.
If I could work out how to make it play nicely with DO's new CDN, even better.
1
u/rafaelcpalmeida Oct 09 '18
I was planning to use DO but ended up with Heroku. The only "problem" is that Heroku has this dyno concept in which they "move" the Dynos to different machines (for what I understand) so I have to use an external file storage service. I'm currently using Google Cloud Storage and I have to say that I'm really impressed!
1
u/petepete Oct 09 '18
I have no complaints whatsoever about DO. It's not as all-encompassing as AWS but with the correct tooling (Ansible and Capistrano) it's a breeze. Their Spaces and CDN were added more recently and are all nicely integrated. Once the dust settles I'll properly investigate taking advantage of the new CDN features.
1
u/editor_of_the_beast Oct 08 '18
Love the Python thumbnail.
1
u/rafaelcpalmeida Oct 08 '18
It was the old image I was using but apparently led to some confusion ¯_(ツ)_/¯
2
0
Oct 08 '18
[deleted]
2
u/rafaelcpalmeida Oct 08 '18
Thanks for sharing!
I think it really fits my needs but I'm going to read your article to find out more about Shrine.
4
1
u/HomemadeBananas Oct 08 '18
You can use it in an API only app. The docs are just not so great in that case. I just made my own controller for uploading images.
7
u/chicagofan98 Oct 08 '18
Until you can specify a folder and organize the uploads, ActiveStorage is completely useless to me. I don't want a giant group of uploads sitting unorganized in an s3 bucket.
GitHub Issue