# rubyonrails-talk

**URL:** https://discuss.rubyonrails.org/c/rubyonrails-talk/7.md

[Latest](https://discuss.rubyonrails.org/latest.md) · [Categories](https://discuss.rubyonrails.org/categories.md) · [Tags](https://discuss.rubyonrails.org/tags.md)

---

## [About the rubyonrails-talk category](https://discuss.rubyonrails.org/t/about-the-rubyonrails-talk-category/14)

<div class="topic-metadata">

**Author:** [@system](https://discuss.rubyonrails.org/u/system)\
**Replies:** 0\
**Last updated:** [March 13, 2020, 10:07pm UTC](https://discuss.rubyonrails.org/t/about-the-rubyonrails-talk-category/14 "2020-03-13T22:07:06Z")

</div>

Discussion for the Ruby on Rails project. Where Rails users come to seek help, announce projects, and discuss all kind of matters surrounding the framework and the community.

---

## [Looking for Ruby on Rails Programming Buddies](https://discuss.rubyonrails.org/t/looking-for-ruby-on-rails-programming-buddies/91793)

<div class="topic-metadata">

**Author:** [@jliangDS](https://discuss.rubyonrails.org/u/jliangDS)\
**Replies:** 6\
**Last updated:** [November 24, 2026, 2:37pm UTC](https://discuss.rubyonrails.org/t/looking-for-ruby-on-rails-programming-buddies/91793 "2026-11-24T14:37:01Z")

</div>

Good afternoon, I would like to connect with fellow Ruby on Rails programmers to learn more about it. I am a intermediate developer with a few hundred hours of coding experience looking to expand my skills to find work. …

---

## [How do you check a migration before it runs in production?](https://discuss.rubyonrails.org/t/how-do-you-check-a-migration-before-it-runs-in-production/91984)

<div class="topic-metadata">

**Author:** [@RepoRover](https://discuss.rubyonrails.org/u/RepoRover)\
**Replies:** 8\
**Last updated:** [November 22, 2026, 8:34pm UTC](https://discuss.rubyonrails.org/t/how-do-you-check-a-migration-before-it-runs-in-production/91984 "2026-11-22T20:34:04Z")

</div>

I’m trying to understand how teams check a Rails migration before it reaches a production PostgreSQL database. What do you look at in review: the migration file, the diff of schema.rb or structure.sql, or the SQL it r…

---

## [Anyone here using Rails with a no-code AI app builder for internal tools?](https://discuss.rubyonrails.org/t/anyone-here-using-rails-with-a-no-code-ai-app-builder-for-internal-tools/91861)

<div class="topic-metadata">

**Author:** [@elfredaseward](https://discuss.rubyonrails.org/u/elfredaseward)\
**Replies:** 1\
**Last updated:** [November 22, 2026, 3:31pm UTC](https://discuss.rubyonrails.org/t/anyone-here-using-rails-with-a-no-code-ai-app-builder-for-internal-tools/91861 "2026-11-22T15:31:38Z")

</div>

I’m a Rails developer in Portland working on a small internal dashboard for my team. We already have a Rails app, but I keep seeing no-code and AI app builder tools pitched as faster ways to spin up the front end and sim…

---

## [Compound Value Objects and composed\_of limitations](https://discuss.rubyonrails.org/t/compound-value-objects-and-composed-of-limitations/91996)

<div class="topic-metadata">

**Author:** [@Balrrach](https://discuss.rubyonrails.org/u/Balrrach)\
**Replies:** 1\
**Last updated:** [November 21, 2026, 7:39am UTC](https://discuss.rubyonrails.org/t/compound-value-objects-and-composed-of-limitations/91996 "2026-11-21T07:39:36Z")

</div>

Hello, I have some concerns regarding value objects in Rails. Let’s start with an example: Imagine a domain where there are Locations. Locations are made out of an Address and a Coordinates. Locations, Address and Coor…

---

## [Looking for a v0 alternative for a Rails side project?](https://discuss.rubyonrails.org/t/looking-for-a-v0-alternative-for-a-rails-side-project/91990)

<div class="topic-metadata">

**Author:** [@elfredaseward](https://discuss.rubyonrails.org/u/elfredaseward)\
**Replies:** 1\
**Last updated:** [November 18, 2026, 7:39am UTC](https://discuss.rubyonrails.org/t/looking-for-a-v0-alternative-for-a-rails-side-project/91990 "2026-11-18T07:39:45Z")

</div>

I’m building a small Rails side project and keep running into v0 as an option for quickly getting UI going. The thing is, my app is already a Rails app with ERB views and a bit of Hotwire, so I’m not sure how well a tool…

---

## [Write-only fields with ActiveRecord](https://discuss.rubyonrails.org/t/write-only-fields-with-activerecord/89349)

<div class="topic-metadata">

**Author:** [@schmijos](https://discuss.rubyonrails.org/u/schmijos)\
**Replies:** 4\
**Last updated:** [November 17, 2026, 2:13pm UTC](https://discuss.rubyonrails.org/t/write-only-fields-with-activerecord/89349 "2026-11-17T14:13:53Z")

</div>

I made a custom ActiveModel::Type to encrypt a field before it goes to the database. The context is that multiple apps use the same database. Some write to it, some read from it. Now my side is write-only. I should never…

---

## [Putting a CDN in front of ActiveStorage](https://discuss.rubyonrails.org/t/putting-a-cdn-in-front-of-activestorage/76948)

<div class="topic-metadata">

**Author:** [@lylo](https://discuss.rubyonrails.org/u/lylo)\
**Replies:** 12\
**Last updated:** [November 16, 2026, 7:38am UTC](https://discuss.rubyonrails.org/t/putting-a-cdn-in-front-of-activestorage/76948 "2026-11-16T07:38:50Z")

</div>

I am using DigitalOcean Spaces to store images uploaded via ActionText/ActiveStorage. This works great. I have now created a CDN (via DigitalOcean) which I’d like to put in front of my images. My goal is for links in my…

---

## [How can I safely handle file uploads with Active Storage?](https://discuss.rubyonrails.org/t/how-can-i-safely-handle-file-uploads-with-active-storage/91678)

<div class="topic-metadata">

**Author:** [@suheb](https://discuss.rubyonrails.org/u/suheb)\
**Replies:** 6\
**Last updated:** [November 13, 2026, 7:38am UTC](https://discuss.rubyonrails.org/t/how-can-i-safely-handle-file-uploads-with-active-storage/91678 "2026-11-13T07:38:12Z")

</div>

If users upload files or images to my Ruby on Rails app, how can I make sure those files are uploaded and stored safely?

---

## [Redirect after form submission with result page](https://discuss.rubyonrails.org/t/redirect-after-form-submission-with-result-page/91792)

<div class="topic-metadata">

**Author:** [@dari-us](https://discuss.rubyonrails.org/u/dari-us)\
**Replies:** 2\
**Last updated:** [November 12, 2026, 12:50pm UTC](https://discuss.rubyonrails.org/t/redirect-after-form-submission-with-result-page/91792 "2026-11-12T12:50:41Z")

</div>

I have a form in my app where users can bulk edit some tag names. Once the operation is finished, I would like to display a page featuring all concrete changes to these records. When using Turbo, it requires me to redir…

---

## [CDN caching for Active Storage private assets without exceeding memory](https://discuss.rubyonrails.org/t/cdn-caching-for-active-storage-private-assets-without-exceeding-memory/81225)

<div class="topic-metadata">

**Author:** [@sdubois](https://discuss.rubyonrails.org/u/sdubois)\
**Replies:** 9\
**Last updated:** [November 9, 2026, 5:15pm UTC](https://discuss.rubyonrails.org/t/cdn-caching-for-active-storage-private-assets-without-exceeding-memory/81225 "2026-11-09T17:15:43Z")

</div>

After implementing responsive images with Active Storage in our Rails 7 app, we encounter Heroku “memory quota exceeded” errors. What’s the proper way to limit memory usage? Should caching be used? How to do so as proxy …

---

## [Community support: SF Ruby Conf scholarship program (free access to students and newcomers)](https://discuss.rubyonrails.org/t/community-support-sf-ruby-conf-scholarship-program-free-access-to-students-and-newcomers/91766)

<div class="topic-metadata">

**Author:** [@camimirabal](https://discuss.rubyonrails.org/u/camimirabal)\
**Replies:** 1\
**Last updated:** [November 9, 2026, 6:36am UTC](https://discuss.rubyonrails.org/t/community-support-sf-ruby-conf-scholarship-program-free-access-to-students-and-newcomers/91766 "2026-11-09T06:36:14Z")

</div>

We’re giving away free tickets to students, recent grads, people from underrepresented groups, and those who recently changed careers and just started writing Ruby so we can continue growing the community. If you know a…

---

## [What is a good database structure for products, orders, payments, and inventory in a Rails POS application?](https://discuss.rubyonrails.org/t/what-is-a-good-database-structure-for-products-orders-payments-and-inventory-in-a-rails-pos-application/91698)

<div class="topic-metadata">

**Author:** [@suheb](https://discuss.rubyonrails.org/u/suheb)\
**Replies:** 6\
**Last updated:** [November 6, 2026, 6:31pm UTC](https://discuss.rubyonrails.org/t/what-is-a-good-database-structure-for-products-orders-payments-and-inventory-in-a-rails-pos-application/91698 "2026-11-06T18:31:56Z")

</div>

If I build a POS system using Ruby on Rails, how should I store product, sales, payment, and stock information in the database?

---

## [Handling in-progress ActiveStorage variants](https://discuss.rubyonrails.org/t/handling-in-progress-activestorage-variants/84606)

<div class="topic-metadata">

**Author:** [@fastjames](https://discuss.rubyonrails.org/u/fastjames)\
**Replies:** 4\
**Last updated:** [October 29, 2026, 5:51pm UTC](https://discuss.rubyonrails.org/t/handling-in-progress-activestorage-variants/84606 "2026-10-29T17:51:05Z")

</div>

Hello all, I am working on a specific use case with ActiveStorage and I want to be sure I’m not missing an obvious easy way to do it. I am working on a rails application that uses ActiveStorage for attachments / variant…

---

## [Introducing FixtureKit: fixture-speed tests without giving up FactoryBot](https://discuss.rubyonrails.org/t/introducing-fixturekit-fixture-speed-tests-without-giving-up-factorybot/91795)

<div class="topic-metadata">

**Author:** [@Ngan](https://discuss.rubyonrails.org/u/Ngan)\
**Replies:** 0\
**Last updated:** [October 28, 2026, 5:58am UTC](https://discuss.rubyonrails.org/t/introducing-fixturekit-fixture-speed-tests-without-giving-up-factorybot/91795 "2026-10-28T05:58:38Z")

</div>

Hi all :waving\_hand: I’d like to share FixtureKit, a gem we built at Gusto to make our test suite faster without asking hundreds of engineers to change how they write test setup. The problem Rails fixtures are fast. Da…

---

## [Time to get tickets to SF Ruby Conference is running out!](https://discuss.rubyonrails.org/t/time-to-get-tickets-to-sf-ruby-conference-is-running-out/91720)

<div class="topic-metadata">

**Author:** [@camimirabal](https://discuss.rubyonrails.org/u/camimirabal)\
**Replies:** 2\
**Last updated:** [October 19, 2026, 1:18pm UTC](https://discuss.rubyonrails.org/t/time-to-get-tickets-to-sf-ruby-conference-is-running-out/91720 "2026-10-19T13:18:19Z")

</div>

We’re less than a month away from the conference and the time to get tickets is now.:double\_exclamation\_mark: Speaking at the event: Vladimir Dementyev (Evil Martians) Chris Oliver (GoRails) Rosa Gutiérrez (37signals) …

---

## [Successor to \`wkhtmltopdf\` (& \`wicked\_pdf\`)](https://discuss.rubyonrails.org/t/successor-to-wkhtmltopdf-wicked-pdf/84251)

<div class="topic-metadata">

**Author:** [@ghiculescu](https://discuss.rubyonrails.org/u/ghiculescu)\
**Replies:** 19\
**Last updated:** [October 18, 2026, 11:42pm UTC](https://discuss.rubyonrails.org/t/successor-to-wkhtmltopdf-wicked-pdf/84251 "2026-10-18T23:42:46Z")

</div>

I found out today that GitHub - wkhtmltopdf/wkhtmltopdf: Convert HTML to PDF using Webkit (QtWebKit) has been archived. And more worryingly, there hasn’t been a new package generated for quite a while (for example, curre…

---

## [\[Newbie\] ActiveRecord: Calculate maximum of calculated column](https://discuss.rubyonrails.org/t/newbie-activerecord-calculate-maximum-of-calculated-column/49939)

<div class="topic-metadata">

**Author:** [@Max\_Mustermann](https://discuss.rubyonrails.org/u/Max_Mustermann)\
**Replies:** 2\
**Last updated:** [October 7, 2026, 5:49pm UTC](https://discuss.rubyonrails.org/t/newbie-activerecord-calculate-maximum-of-calculated-column/49939 "2026-10-07T17:49:59Z")

</div>

Hi there, I recently started learning Ruby on Rails. I decided to learn Rails by programming some kind of small statistic application where I can document the fuel consumption of my car - i.e. everytime I'm at the gas s…

---

## [Wrap all handlers for \`rescue\_from\` inside block](https://discuss.rubyonrails.org/t/wrap-all-handlers-for-rescue-from-inside-block/91690)

<div class="topic-metadata">

**Author:** [@dari-us](https://discuss.rubyonrails.org/u/dari-us)\
**Replies:** 2\
**Last updated:** [October 7, 2026, 11:12am UTC](https://discuss.rubyonrails.org/t/wrap-all-handlers-for-rescue-from-inside-block/91690 "2026-10-07T11:12:10Z")

</div>

I am trying to output localized messages to the user inside all rescue\_from blocks, but can’t get it to work. I want to avoid the boilerplate of wrapping each handler inside a I18n.with\_locale block manually. My general …

---

## [How do these 'proxy' types work exactly?](https://discuss.rubyonrails.org/t/how-do-these-proxy-types-work-exactly/91603)

<div class="topic-metadata">

**Author:** [@Maferep](https://discuss.rubyonrails.org/u/Maferep)\
**Replies:** 2\
**Last updated:** [October 6, 2026, 4:28pm UTC](https://discuss.rubyonrails.org/t/how-do-these-proxy-types-work-exactly/91603 "2026-10-06T16:28:34Z")

</div>

Hi, I’m trying to learn to use ruby debug/steep. Take the case of ActiveStorage. I have an ActiveStorage::Attached::One called ‘content’. If I do “content.methods” or “content.inspect” I won’t see the symbol ‘blob’ or ‘…

---

## [Single table inheritance opt-in](https://discuss.rubyonrails.org/t/single-table-inheritance-opt-in/91673)

<div class="topic-metadata">

**Author:** [@Ngan](https://discuss.rubyonrails.org/u/Ngan)\
**Replies:** 5\
**Last updated:** [October 4, 2026, 10:48pm UTC](https://discuss.rubyonrails.org/t/single-table-inheritance-opt-in/91673 "2026-10-04T22:48:13Z")

</div>

Nowadays, I feel like I don’t use Single Table Inheritance anymore. When I need this sort of paradigm, I reach for ActiveRecord::DelegatedType. Additionally, I’ve always found it annoying that I can’t easily use a column…

---

## [What is the best way to optimize slow ActiveRecord queries in a Rails application?](https://discuss.rubyonrails.org/t/what-is-the-best-way-to-optimize-slow-activerecord-queries-in-a-rails-application/91686)

<div class="topic-metadata">

**Author:** [@suheb](https://discuss.rubyonrails.org/u/suheb)\
**Replies:** 1\
**Last updated:** [September 30, 2026, 10:18am UTC](https://discuss.rubyonrails.org/t/what-is-the-best-way-to-optimize-slow-activerecord-queries-in-a-rails-application/91686 "2026-09-30T10:18:22Z")

</div>

My Rails application is taking too long to get data from the database. How can I make those database queries faster?

---

## [Responsive images (img srcset) with ActiveStorage](https://discuss.rubyonrails.org/t/responsive-images-img-srcset-with-activestorage/81210)

<div class="topic-metadata">

**Author:** [@sdubois](https://discuss.rubyonrails.org/u/sdubois)\
**Replies:** 1\
**Last updated:** [September 30, 2026, 9:25am UTC](https://discuss.rubyonrails.org/t/responsive-images-img-srcset-with-activestorage/81210 "2026-09-30T09:25:56Z")

</div>

Here is what I ended up with to get responsive images with Active Storage. Anyone would have suggestions to clean this up or make it more generic? Would it be worth upstreaming this kind of helper in Active Storage? # a…

---

## [ActiveStorage - has\_one\_attached ... analyze: false](https://discuss.rubyonrails.org/t/activestorage-has-one-attached-analyze-false/88987)

<div class="topic-metadata">

**Author:** [@Confused\_Vorlon](https://discuss.rubyonrails.org/u/Confused_Vorlon)\
**Replies:** 2\
**Last updated:** [September 30, 2026, 8:46am UTC](https://discuss.rubyonrails.org/t/activestorage-has-one-attached-analyze-false/88987 "2026-09-30T08:46:32Z")

</div>

I’m dealing with a bunch of large-ish video files. I upload them directly to S3 and then attach to my VideoEdit record. I don’t need the info that the AnalyseJob would provide, and downloading large files from S3 is unn…

---

## [Active Storage: How to create "named variants" that are cropped by user-supplied coordinates](https://discuss.rubyonrails.org/t/active-storage-how-to-create-named-variants-that-are-cropped-by-user-supplied-coordinates/80642)

<div class="topic-metadata">

**Author:** [@john-999](https://discuss.rubyonrails.org/u/john-999)\
**Replies:** 2\
**Last updated:** [September 27, 2026, 12:17pm UTC](https://discuss.rubyonrails.org/t/active-storage-how-to-create-named-variants-that-are-cropped-by-user-supplied-coordinates/80642 "2026-09-27T12:17:18Z")

</div>

The idea of named variants (merged pull request) is to be able to define image variants (i.e. different sizes) in 1 place (in the Model), instead of redundantly and all over your Views. But, if you’re in a situation in …

---

## [Heroku alternatives](https://discuss.rubyonrails.org/t/heroku-alternatives/61396)

<div class="topic-metadata">

**Author:** [@Jason\_Hsu](https://discuss.rubyonrails.org/u/Jason_Hsu)\
**Replies:** 8\
**Last updated:** [September 24, 2026, 12:22pm UTC](https://discuss.rubyonrails.org/t/heroku-alternatives/61396 "2026-09-24T12:22:29Z")

</div>

I have finally successfully deployed simple apps on Heroku in following the tutorial at Ruby on Rails Tutorial | Learn Enough to Be Dangerous . Are there other free sites like Heroku? I want to deploy on other sites as…

---

## [What is the best way to integrate flight booking APIs into a Rails travel app?](https://discuss.rubyonrails.org/t/what-is-the-best-way-to-integrate-flight-booking-apis-into-a-rails-travel-app/91668)

<div class="topic-metadata">

**Author:** [@suheb](https://discuss.rubyonrails.org/u/suheb)\
**Replies:** 1\
**Last updated:** [September 23, 2026, 12:48pm UTC](https://discuss.rubyonrails.org/t/what-is-the-best-way-to-integrate-flight-booking-apis-into-a-rails-travel-app/91668 "2026-09-23T12:48:16Z")

</div>

How can I connect my Rails travel app to a flight booking API so users can search and book flights through the app?

---

## [I've found a typo in Ruby on Rails guide, where to say about that?](https://discuss.rubyonrails.org/t/ive-found-a-typo-in-ruby-on-rails-guide-where-to-say-about-that/91660)

<div class="topic-metadata">

**Author:** [@oleksandrk](https://discuss.rubyonrails.org/u/oleksandrk)\
**Replies:** 2\
**Last updated:** [September 18, 2026, 8:20pm UTC](https://discuss.rubyonrails.org/t/ive-found-a-typo-in-ruby-on-rails-guide-where-to-say-about-that/91660 "2026-09-18T20:20:38Z")

</div>

Typo here: It should be selected (inserted) the description, not name. \<%# app/views/products/show.html.erb%\> \<% cache @product do %\> \<h1\>\<%= @product.name %\>\</h1\> \<%= @product.description %\> \<% end %\>

---

## [Internal server error 500 while going through guide](https://discuss.rubyonrails.org/t/internal-server-error-500-while-going-through-guide/91629)

<div class="topic-metadata">

**Author:** [@oleksandrk](https://discuss.rubyonrails.org/u/oleksandrk)\
**Replies:** 11\
**Last updated:** [September 17, 2026, 10:16am UTC](https://discuss.rubyonrails.org/t/internal-server-error-500-while-going-through-guide/91629 "2026-09-17T10:16:42Z")

</div>

When I was going through this guide ( Getting Started with Rails — Ruby on Rails Guides at this point Getting Started with Rails — Ruby on Rails Guides ) this error happened. I’ve just placed the string (root “products#i…

---

## [PmRails 2.0 and DkRails 2.0 — quick, disposable Rails environments with Podman or Docker](https://discuss.rubyonrails.org/t/pmrails-2-0-and-dkrails-2-0-quick-disposable-rails-environments-with-podman-or-docker/91651)

<div class="topic-metadata">

**Author:** [@wakairo](https://discuss.rubyonrails.org/u/wakairo)\
**Replies:** 0\
**Last updated:** [September 16, 2026, 9:56am UTC](https://discuss.rubyonrails.org/t/pmrails-2-0-and-dkrails-2-0-quick-disposable-rails-environments-with-podman-or-docker/91651 "2026-09-16T09:56:33Z")

</div>

I’ve released PmRails 2.0, and also DkRails 2.0, a Docker-based counterpart with a similar workflow. Both are intended to make it quick to get to the point where rails test or rails server works, without installing Ruby…

[Next page](https://discuss.rubyonrails.org/c/rubyonrails-talk/7.md?page=1)
