Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

[DO NOT MERGE] POC for active storage with AWS#164

Open
mustafaturan wants to merge 1 commit intomasterfrom
mustafaturan/active-storage-poc
Open

[DO NOT MERGE] POC for active storage with AWS#164
mustafaturan wants to merge 1 commit intomasterfrom
mustafaturan/active-storage-poc

Conversation

@mustafaturan
Copy link
Contributor

@mustafaturan mustafaturan commented Mar 13, 2019

JUST FOR POC (paired with @adam-hart)

Upload demo

link_instance = LinkInstance.last
link_instance.logo.attach(io: File.open('/Users/mturan/Desktop/1.png'), 
  filename: '1.png')

Image link

Rails.application.routes.url_helpers.rails_blob_path(link_instance.logo, only_path: true)

Image link on controllers:

url_for(link_instance.logo)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments