# Latest

**URL:** https://discuss.rubyonrails.org/latest.md

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

---

## [Welcome to the Ruby on Rails forum](https://discuss.rubyonrails.org/t/welcome-to-the-ruby-on-rails-forum/7)

<div class="topic-metadata">

**Author:** [@system](https://discuss.rubyonrails.org/u/system)\
**Replies:** 0\
**Last updated:** [March 2, 2020, 3:21pm UTC](https://discuss.rubyonrails.org/t/welcome-to-the-ruby-on-rails-forum/7 "2020-03-02T15:21:49Z")

</div>

Welcome to the Ruby on Rails forum. For discussion about technical Ruby on Rails core changes use the #rubyonrails-core category. For discussion regarding general Ruby on Rails use the #rubyonrails-talk category. Plea…

---

## [Range conditions on multi-column \`composed\_of\` aggregates](https://discuss.rubyonrails.org/t/range-conditions-on-multi-column-composed-of-aggregates/91722)

<div class="topic-metadata">

**Author:** [@kushagr3](https://discuss.rubyonrails.org/u/kushagr3)\
**Replies:** 0\
**Last updated:** [October 14, 2026, 7:53am UTC](https://discuss.rubyonrails.org/t/range-conditions-on-multi-column-composed-of-aggregates/91722 "2026-10-14T07:53:59Z")

</div>

Hey all, Ranges on single-mapping composed\_of aggregates were fixed in https://github.com/rails/rails/pull/59013, so a value object that maps to one column now works: Customer.where(balance: Money.new(150)..Money.new…

---

## [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:** 0\
**Last updated:** [October 13, 2026, 3:16pm UTC](https://discuss.rubyonrails.org/t/time-to-get-tickets-to-sf-ruby-conference-is-running-out/91720 "2026-10-13T15:16:40Z")

</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) …

---

## [Proposal: Detect external side effects inside Active Record transactions](https://discuss.rubyonrails.org/t/proposal-detect-external-side-effects-inside-active-record-transactions/91719)

<div class="topic-metadata">

**Author:** [@yashika279](https://discuss.rubyonrails.org/u/yashika279)\
**Replies:** 0\
**Last updated:** [October 13, 2026, 9:35am UTC](https://discuss.rubyonrails.org/t/proposal-detect-external-side-effects-inside-active-record-transactions/91719 "2026-10-13T09:35:37Z")

</div>

Hi Rails Core team, I’ve been developing TransactionGuard, a Ruby gem that detects external side effects performed inside Active Record transactions. For example, sending an HTTP request, delivering an email, or enqueu…

---

## [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:** 5\
**Last updated:** [October 9, 2026, 12:20pm 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-10-09T12:20:22Z")

</div>

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

---

## [\[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…

---

## [Proposal: Action Cable should accept a WebSocket handshake with no Origin header, as Action Controller does](https://discuss.rubyonrails.org/t/proposal-action-cable-should-accept-a-websocket-handshake-with-no-origin-header-as-action-controller-does/91694)

<div class="topic-metadata">

**Author:** [@yujiteshima](https://discuss.rubyonrails.org/u/yujiteshima)\
**Replies:** 0\
**Last updated:** [October 4, 2026, 5:41am UTC](https://discuss.rubyonrails.org/t/proposal-action-cable-should-accept-a-websocket-handshake-with-no-origin-header-as-action-controller-does/91694 "2026-10-04T05:41:53Z")

</div>

What happens today Action Cable rejects any WebSocket handshake whose Origin header is missing. On 8.1.3 and on main the check is: # actioncable/lib/action\_cable/server/base.rb (main) def allow\_request\_origin?(env) re…

---

## [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…

---

## [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:** 4\
**Last updated:** [September 29, 2026, 9:15am UTC](https://discuss.rubyonrails.org/t/how-can-i-safely-handle-file-uploads-with-active-storage/91678 "2026-09-29T09:15:52Z")

</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?

---

## [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 …

---

## [Proposal: Enhance the DirectUpload JS API to support more useful custom blob names (like the ActiveStorage::Attached::\*attach(:key) argument)](https://discuss.rubyonrails.org/t/proposal-enhance-the-directupload-js-api-to-support-more-useful-custom-blob-names-like-the-activestorage-attach-key-argument/88034)

<div class="topic-metadata">

**Author:** [@jm3](https://discuss.rubyonrails.org/u/jm3)\
**Replies:** 3\
**Last updated:** [October 10, 2026, 3:01pm UTC](https://discuss.rubyonrails.org/t/proposal-enhance-the-directupload-js-api-to-support-more-useful-custom-blob-names-like-the-activestorage-attach-key-argument/88034 "2026-10-10T15:01:57Z")

</div>

TL;DR It Would Be Nice If™ if DirectUpload accepted a key argument to customize and override the default hash-based blob naming and to support sub-dirs within buckets. (Others have asked for this before, e.g. in this th…

---

## [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?

---

## [How can I add multiple currencies to a travel booking application built with Rails?](https://discuss.rubyonrails.org/t/how-can-i-add-multiple-currencies-to-a-travel-booking-application-built-with-rails/91667)

<div class="topic-metadata">

**Author:** [@suheb](https://discuss.rubyonrails.org/u/suheb)\
**Replies:** 0\
**Last updated:** [September 22, 2026, 12:40pm UTC](https://discuss.rubyonrails.org/t/how-can-i-add-multiple-currencies-to-a-travel-booking-application-built-with-rails/91667 "2026-09-22T12:40:04Z")

</div>

How can I allow users from different countries to see and pay for travel bookings in their own currency?

---

## [Extend Content Security Policy DSL to support both enforce and report-only policies at the same time.](https://discuss.rubyonrails.org/t/extend-content-security-policy-dsl-to-support-both-enforce-and-report-only-policies-at-the-same-time/73654)

<div class="topic-metadata">

**Author:** [@atcruice](https://discuss.rubyonrails.org/u/atcruice)\
**Replies:** 3\
**Last updated:** [September 21, 2026, 11:22am UTC](https://discuss.rubyonrails.org/t/extend-content-security-policy-dsl-to-support-both-enforce-and-report-only-policies-at-the-same-time/73654 "2026-09-21T11:22:39Z")

</div>

Unless I’m mistaken, the current DSL for managing the Content Security Policy doesn’t appear to support producing both headers at the same time. I believe earlier CSP specifications, if both headers were present, instruc…

---

## [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…

---

## [Add an explicit confirmation: option to has\_secure\_password](https://discuss.rubyonrails.org/t/add-an-explicit-confirmation-option-to-has-secure-password/91658)

<div class="topic-metadata">

**Author:** [@hikaru](https://discuss.rubyonrails.org/u/hikaru)\
**Replies:** 0\
**Last updated:** [September 17, 2026, 7:00am UTC](https://discuss.rubyonrails.org/t/add-an-explicit-confirmation-option-to-has-secure-password/91658 "2026-09-17T07:00:05Z")

</div>

Hi all :waving\_hand: I ran into a common friction point with has\_secure\_password and wanted to propose a small, backward-compatible addition. The problem By default, has\_secure\_password only validates that password\_co…

---

## [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:** 1\
**Last updated:** [September 19, 2026, 4:41am UTC](https://discuss.rubyonrails.org/t/pmrails-2-0-and-dkrails-2-0-quick-disposable-rails-environments-with-podman-or-docker/91651 "2026-09-19T04:41:20Z")

</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…

---

## [A small modification at ActiveRecord's calculations.rb](https://discuss.rubyonrails.org/t/a-small-modification-at-activerecords-calculations-rb/33057)

<div class="topic-metadata">

**Author:** [@Michalis\_P](https://discuss.rubyonrails.org/u/Michalis_P)\
**Replies:** 5\
**Last updated:** [September 15, 2026, 4:13pm UTC](https://discuss.rubyonrails.org/t/a-small-modification-at-activerecords-calculations-rb/33057 "2026-09-15T16:13:50Z")

</div>

Hello, I'm not sure if this is the right channel to write this message. but by adding line 208 : sql \<\< ") AS #{aggregate\_alias}\_subquery" if use\_workaround More legitimate sql code is generated, and a bug for the new…

---

## [Request for review: PR #58619 — ActiveRecord::Base.skip\_callback\_monitor](https://discuss.rubyonrails.org/t/request-for-review-pr-58619-activerecord-base-skip-callback-monitor/91613)

<div class="topic-metadata">

**Author:** [@OuYangJinTing](https://discuss.rubyonrails.org/u/OuYangJinTing)\
**Replies:** 1\
**Last updated:** [September 11, 2026, 2:27am UTC](https://discuss.rubyonrails.org/t/request-for-review-pr-58619-activerecord-base-skip-callback-monitor/91613 "2026-09-11T02:27:27Z")

</div>

Hi Rails team, I opened \[PR #58619\](Add ActiveRecord::Base.skip\_callback\_monitor by OuYangJinTing · Pull Request #58619 · rails/rails · GitHub) to add \`ActiveRecord::Base.skip\_callback\_monitor\`. Active Record exposes s…

---

## [Rails 8 - timing out a session](https://discuss.rubyonrails.org/t/rails-8-timing-out-a-session/91528)

<div class="topic-metadata">

**Author:** [@marchoeppner1](https://discuss.rubyonrails.org/u/marchoeppner1)\
**Replies:** 2\
**Last updated:** [September 10, 2026, 5:54am UTC](https://discuss.rubyonrails.org/t/rails-8-timing-out-a-session/91528 "2026-09-10T05:54:52Z")

</div>

Hi, very very casual rails user here (mostly via Ruby, which I use for general programming). Some time ago I developed a simple rails app to visualize some data and store it in a database. For authentication, I used the…

---

## [Should this Rails Guides fix be backported to 8-1-stable?](https://discuss.rubyonrails.org/t/should-this-rails-guides-fix-be-backported-to-8-1-stable/91614)

<div class="topic-metadata">

**Author:** [@jackbowlin](https://discuss.rubyonrails.org/u/jackbowlin)\
**Replies:** 0\
**Last updated:** [September 7, 2026, 10:11pm UTC](https://discuss.rubyonrails.org/t/should-this-rails-guides-fix-be-backported-to-8-1-stable/91614 "2026-09-07T22:11:41Z")

</div>

I’m new to contributing to Rails and have been investigating issue #58624, which reports a NameError in the Sign Up and Settings guide. The guide’s Settings::PasswordsController#update action redirects to settings\_profi…

---

## [\[Feature Proposal\] ActiveRecord update\_all/delete\_all support use sql's returning clause statements](https://discuss.rubyonrails.org/t/feature-proposal-activerecord-update-all-delete-all-support-use-sqls-returning-clause-statements/78729)

<div class="topic-metadata">

**Author:** [@OuYangJinTing](https://discuss.rubyonrails.org/u/OuYangJinTing)\
**Replies:** 3\
**Last updated:** [September 7, 2026, 4:12pm UTC](https://discuss.rubyonrails.org/t/feature-proposal-activerecord-update-all-delete-all-support-use-sqls-returning-clause-statements/78729 "2026-09-07T16:12:35Z")

</div>

ActiveRecord’s update\_all/delete\_all methods is efficient, because it don’t need to instantiate object. But it only renurn number of changed rows at present, and sometimes I need to return some specific data, eg: id. At…

---

## [Active Storage S3 Expied images](https://discuss.rubyonrails.org/t/active-storage-s3-expied-images/88632)

<div class="topic-metadata">

**Author:** [@rctneil](https://discuss.rubyonrails.org/u/rctneil)\
**Replies:** 13\
**Last updated:** [September 7, 2026, 9:59am UTC](https://discuss.rubyonrails.org/t/active-storage-s3-expied-images/88632 "2026-09-07T09:59:17Z")

</div>

Hi, I have an app i’m working on and in Production it uses Amazon S3 to store images. The images show up fine but when we come back to the app after leaving it open in a tab for a short time, we do a regular refresh an…

[Next page](https://discuss.rubyonrails.org/latest.md?page=1)
