GeistHaus
log in · sign up

rails/activestorage at main · rails/rails

github.com

Ruby on Rails. Contribute to rails/rails development by creating an account on GitHub.

3 pages link to this URL
Understanding ActiveStorage Variants for Image Transformations in Rails

Image transformations let you show images in the size or format you need. Create a new version by calling variant on an attachment and passing the desired transformations. When a browser requests that URL, Active Storage will process the original image on demand and redirect to the generated file.

0 inbound links article en Rails InternalsActiveStorage
Set Up Rails Activestorage With Azure Securely

Ruby on Rails has built-in support for managing uploaded files with ActiveStorage, which both cleans up your application code and acts as an abstraction over different storage backends. Azure Storage is one of the supported backends, but configuring it securely can take a little figuring out. The most sensible way I’ve found to have it configured is with files stored having no public access, but allowing temporary access via signed URLs for both uploads & downloads.

0 inbound links article en post CC BY-SA 4.0