Registry / web-framework / activestorage

activestorage

JSON →
library8.1.3rbrubygemsunverified

Active Storage attaches cloud and local files to Rails applications using a simple mirroring approach.

gem install activestorage
INSTALL
IMPORT
SIG · ACTIVESTORAGE
A
activestorage
web-frameworkrubyv8.1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ActiveStorage
require 'active_storage'

Attach a file to a model using Active Storage.

require 'active_storage' class User < ApplicationRecord has_one_attached :avatar end user = User.find(1) user.avatar.attach(io: File.open('/path/to/photo.jpg'), filename: 'photo.jpg')
Debug
Known issues

No known issues recorded.

Upgrade
Version history
8.1.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
47 hits · last 30 days
node
40
OpenAI (training)
2
Resources
activestorage — gem install activestorage · libregistry