GeistHaus
log in · sign up

Active Storage Overview — Ruby on Rails Guides

edgeguides.rubyonrails.org

This guide covers how to attach files to your Active Record models.After reading this guide, you will know: How to attach one or many files to a record. How to delete an attached file. How to link to an attached file. How to use variants to transform images. How to generate an image representation of a non-image file, such as a PDF or a video. How to send file uploads directly from browsers to a storage service, bypassing your application servers. How to clean up files stored during testing. How to implement support for additional storage services.

21 pages link to this URL
libvips

A fast image processing library with low memory needs.

Simple e-mail service with Rails - Part 3: Adding attachments

In the last part, we’ve learned how to send an e-mail. Even if with formatted text, we’re still missing attachments. Rails ActionText editor can handle attachments, but it’s a bit tricky. We would need to manually attach each file to the e-mail, so receiver can actually see the file. For now, let’s use this restriction as an opportunity to learn how to upload files using Rails. And of course send them as e-mail attachments.

0 inbound links article en RubyTutorials RailsHotwire
Ruby on Rails resources | larsp.de

A comprehensive link directory and continually updated notes for Ruby on Rails development, covering admin interfaces, APIs, authentication, caching, databases, testing, and more.

0 inbound links article en
How to attach an active storage file to an email

Are you using Active Storage to handle file uploading to the cloud (maybe AWS) and you want to know how to attach an uploaded file to an email?… But you are not familiar with the Active Storage and Action Mailer APIs? I answered this question on reddit...

0 inbound links article en railsactionmaileractivestorage