Snippets

Realhub Systems Uploading file to paperclip from rails console

Created by Accounts Realhub
1
2
3
file_path = "/path/to/file"
file = File.open(file_path, 'rb')
image = Image.create(file: file)

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.