# Ruby S3 URL helper

**URL:** <https://meta.discourse.org/t/ruby-s3-url-helper/51923>\
**Category:** Product Support\
**Created:** [October 23, 2016, 12:59pm UTC](https://meta.discourse.org/t/ruby-s3-url-helper/51923 "2016-10-23T12:59:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![arrancscott](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arrancscott/32/50191_2.png) [@arrancscott](https://meta.discourse.org/u/arrancscott)\
**Post date:** [October 24, 2016, 10:55am UTC](https://meta.discourse.org/t/ruby-s3-url-helper/51923/3 "2016-10-24T10:55:10Z")

</div>

`filenames` is a table, belonging to `User`.

The `filenames` table stores filenames for images uploaded to a users slideshow.

I’ve managed to solve this by adding an `upload_id` column to my table, and when creating the upload with `Upload.create_for` I set the upload\_id manually in the `filenames` table. This way I can find the upload using the `Upload.find_by` method and get the URL for the upload.

Seems to work ok, happy to be told if there will be an issue doing it this way.

---

_[View the full topic](https://meta.discourse.org/t/ruby-s3-url-helper/51923)._
