# \#ruby-language

**URL:** https://discuss.rubyonrails.org/tag/ruby-language/21.md

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

---

## [What are the best resources to learn about Ruby memory use in 2026?](https://discuss.rubyonrails.org/t/what-are-the-best-resources-to-learn-about-ruby-memory-use-in-2026/90920)

<div class="topic-metadata">

**Author:** [@railroad\_worker](https://discuss.rubyonrails.org/u/railroad_worker)\
**Replies:** 0\
**Last updated:** [March 24, 2026, 2:09pm UTC](https://discuss.rubyonrails.org/t/what-are-the-best-resources-to-learn-about-ruby-memory-use-in-2026/90920 "2026-03-24T14:09:59Z")

</div>

I having a problem with increasing memory leaks in my app. I have noticed that a lot of the talks and books where they talk about it are several years old. What is considered the best source to learn about this in 2026? …

---

## [Rails, Ruby, memory: does Ruby release memory as it is garbage collected](https://discuss.rubyonrails.org/t/rails-ruby-memory-does-ruby-release-memory-as-it-is-garbage-collected/90284)

<div class="topic-metadata">

**Author:** [@railroad\_worker](https://discuss.rubyonrails.org/u/railroad_worker)\
**Replies:** 0\
**Last updated:** [March 20, 2026, 1:51pm UTC](https://discuss.rubyonrails.org/t/rails-ruby-memory-does-ruby-release-memory-as-it-is-garbage-collected/90284 "2026-03-20T13:51:14Z")

</div>

I watched this video on memory leaks from the author of the derailed gem https://www.youtube.com/watch?v=m2nj5sUE3hg&t=1s He says that once Ruby grabs memory, it never releases it back to the OS. This was in 2015. Is t…

---

## [Ruby 3.2 + Rails 6 & 7 leading to gradual memory leak compared to stable memory in Ruby 2.6 + Rails 6](https://discuss.rubyonrails.org/t/ruby-3-2-rails-6-7-leading-to-gradual-memory-leak-compared-to-stable-memory-in-ruby-2-6-rails-6/83018)

<div class="topic-metadata">

**Author:** [@Jatin\_Dhankhar](https://discuss.rubyonrails.org/u/Jatin_Dhankhar)\
**Replies:** 15\
**Last updated:** [July 23, 2025, 10:52am UTC](https://discuss.rubyonrails.org/t/ruby-3-2-rails-6-7-leading-to-gradual-memory-leak-compared-to-stable-memory-in-ruby-2-6-rails-6/83018 "2025-07-23T10:52:15Z")

</div>

Few months back we upgraded on of our services from Ruby 2.6.6 with Rails 6.0.5.1 to Ruby 3.2.2 with Rails 7 and have noticed a slow but gradual increase of memory without any major change to the underlying application c…

---

## [Where Can i know for which version of ruby is officially tested for a particular version of rails](https://discuss.rubyonrails.org/t/where-can-i-know-for-which-version-of-ruby-is-officially-tested-for-a-particular-version-of-rails/83647)

<div class="topic-metadata">

**Author:** [@tesssie](https://discuss.rubyonrails.org/u/tesssie)\
**Replies:** 6\
**Last updated:** [December 29, 2024, 1:31pm UTC](https://discuss.rubyonrails.org/t/where-can-i-know-for-which-version-of-ruby-is-officially-tested-for-a-particular-version-of-rails/83647 "2024-12-29T13:31:35Z")

</div>

I have a legacy application of ruby on rails 4.2 and ruby version 2.6. As ruby 2.6 upgrade has reached its end of life, I need to upgrade to ruby 3.1. when I checked rails | RubyGems.org | your community gem host its say…

---

## [Ddtrace Ruby gem on upgrade from Ruby 2.5.8 to 2.6.6](https://discuss.rubyonrails.org/t/ddtrace-ruby-gem-on-upgrade-from-ruby-2-5-8-to-2-6-6/78331)

<div class="topic-metadata">

**Author:** [@Noe](https://discuss.rubyonrails.org/u/Noe)\
**Replies:** 0\
**Last updated:** [July 2, 2021, 6:40pm UTC](https://discuss.rubyonrails.org/t/ddtrace-ruby-gem-on-upgrade-from-ruby-2-5-8-to-2-6-6/78331 "2021-07-02T18:40:01Z")

</div>

I’m working on upgrading the Ruby version from 2.5 to 2.6 on a somewhat legacy application. We have a deploy pipeline setup through gitlab that deploys to kubernetes. I’m running into a weird error that seems to be happe…

---

## [Ruby 3.2.3 shows large increase in Heroku Free Memory Slots Metric](https://discuss.rubyonrails.org/t/ruby-3-2-3-shows-large-increase-in-heroku-free-memory-slots-metric/84838)

<div class="topic-metadata">

**Author:** [@swatijadhav](https://discuss.rubyonrails.org/u/swatijadhav)\
**Replies:** 0\
**Last updated:** [February 8, 2024, 11:10am UTC](https://discuss.rubyonrails.org/t/ruby-3-2-3-shows-large-increase-in-heroku-free-memory-slots-metric/84838 "2024-02-08T11:10:29Z")

</div>

Previous Ruby Version ‘3.1.4’ Updated Ruby Version ‘3.2.3’ After Upgrading Ruby to 3.2.3, it is showing a larger variation in the Heroku Free Memory Slots Metric. There is no change in the memory usage though, we t…

---

## [Ruby for Data Science: Handling Large Datasets Efficiently](https://discuss.rubyonrails.org/t/ruby-for-data-science-handling-large-datasets-efficiently/83638)

<div class="topic-metadata">

**Author:** [@Techi11](https://discuss.rubyonrails.org/u/Techi11)\
**Replies:** 1\
**Last updated:** [September 5, 2023, 3:01am UTC](https://discuss.rubyonrails.org/t/ruby-for-data-science-handling-large-datasets-efficiently/83638 "2023-09-05T03:01:14Z")

</div>

I’m interested in using Ruby for data science tasks, particularly for working with large datasets. While Ruby may not be as commonly associated with data science as languages like Python or R, I believe it has potential …

---

## [The suitability of Ruby for startups and one-person teams](https://discuss.rubyonrails.org/t/the-suitability-of-ruby-for-startups-and-one-person-teams/83010)

<div class="topic-metadata">

**Author:** [@dubesoftware](https://discuss.rubyonrails.org/u/dubesoftware)\
**Replies:** 4\
**Last updated:** [June 25, 2023, 6:17pm UTC](https://discuss.rubyonrails.org/t/the-suitability-of-ruby-for-startups-and-one-person-teams/83010 "2023-06-25T18:17:43Z")

</div>

Hey friends, I have an opportunity to write about the suitability of Ruby for startups and one-person teams. Would you be kind enough to share how Ruby has given you the edge over other languages/ ecosystems? DMs also …

---

## [Why use ServiceObjects, QueryObjects, etc. rather than Lambdas?](https://discuss.rubyonrails.org/t/why-use-serviceobjects-queryobjects-etc-rather-than-lambdas/75923)

<div class="topic-metadata">

**Author:** [@Delon\_Newman](https://discuss.rubyonrails.org/u/Delon_Newman)\
**Replies:** 13\
**Last updated:** [March 26, 2023, 7:20pm UTC](https://discuss.rubyonrails.org/t/why-use-serviceobjects-queryobjects-etc-rather-than-lambdas/75923 "2023-03-26T19:20:19Z")

</div>

I work on a Rails team in the healthcare industry and I’m currently refactoring a very data-driven application into ServiceObjects, QueryObjects, etc. to keep down the complexity of the logic in my models and controllers…

---

## [Rails new errors out](https://discuss.rubyonrails.org/t/rails-new-errors-out/81800)

<div class="topic-metadata">

**Author:** [@Ookma-Kyi](https://discuss.rubyonrails.org/u/Ookma-Kyi)\
**Replies:** 4\
**Last updated:** [November 22, 2022, 8:33pm UTC](https://discuss.rubyonrails.org/t/rails-new-errors-out/81800 "2022-11-22T20:33:16Z")

</div>

I am having an issue with the rails new command. Here is the output of the rails new ookma-kyi-new: D:\\ookma-kyi-core\>rails new ookma-kyi-core create create README.md create Rakefile create .r…

---

## [Appdynamic with Ruby on Rails](https://discuss.rubyonrails.org/t/appdynamic-with-ruby-on-rails/81793)

<div class="topic-metadata">

**Author:** [@ashishroe](https://discuss.rubyonrails.org/u/ashishroe)\
**Replies:** 1\
**Last updated:** [November 22, 2022, 11:05am UTC](https://discuss.rubyonrails.org/t/appdynamic-with-ruby-on-rails/81793 "2022-11-22T11:05:52Z")

</div>

Hello, I have to configured appdynamic with ruby on rails, I have added gem "gem ‘appdynamics’ " in gemfile, also created appdynamics.yml file with following details: app\_name: “My app name” tier\_name: “ROR” node\_name:…

---

## [YJIT and Jemalloc on Rails](https://discuss.rubyonrails.org/t/yjit-and-jemalloc-on-rails/81205)

<div class="topic-metadata">

**Author:** [@emrhnksck](https://discuss.rubyonrails.org/u/emrhnksck)\
**Replies:** 1\
**Last updated:** [August 6, 2022, 10:50am UTC](https://discuss.rubyonrails.org/t/yjit-and-jemalloc-on-rails/81205 "2022-08-06T10:50:04Z")

</div>

Hi I have project runs in rails 6.x.x and ruby 3.x.x I added yjit and jemalloc to project but i dont see any performance difference between with them and without them. Am i missing implement somtehing? Here is my implme…

---

## [Apply Ruby Text on RStudio Shiny](https://discuss.rubyonrails.org/t/apply-ruby-text-on-rstudio-shiny/80457)

<div class="topic-metadata">

**Author:** [@englianhu](https://discuss.rubyonrails.org/u/englianhu)\
**Replies:** 3\
**Last updated:** [April 18, 2022, 8:54am UTC](https://discuss.rubyonrails.org/t/apply-ruby-text-on-rstudio-shiny/80457 "2022-04-18T08:54:06Z")

</div>

Since there has insufficient references through interner about : appply ruby through linux🐧 terminal (and RStudio Shiny) apply ruby text through linux🐧 terminal (and RStudio Shiny) here I try to ask if somebody take a…

---

## [Rich text area validation](https://discuss.rubyonrails.org/t/rich-text-area-validation/79954)

<div class="topic-metadata">

**Author:** [@merlin2049er](https://discuss.rubyonrails.org/u/merlin2049er)\
**Replies:** 7\
**Last updated:** [February 15, 2022, 11:10am UTC](https://discuss.rubyonrails.org/t/rich-text-area-validation/79954 "2022-02-15T11:10:01Z")

</div>

I’ve got a rich text area on a form, and I’ve added a simple validation that validates\_presence\_of :content but when the form fails the submission, it doesn’t display content can’t be blank (it displays that for the re…

---

## [FFI gem build failure on Ruby 3.x](https://discuss.rubyonrails.org/t/ffi-gem-build-failure-on-ruby-3-x/79727)

<div class="topic-metadata">

**Author:** [@Brian\_Piercy](https://discuss.rubyonrails.org/u/Brian_Piercy)\
**Replies:** 0\
**Last updated:** [January 8, 2022, 12:12pm UTC](https://discuss.rubyonrails.org/t/ffi-gem-build-failure-on-ruby-3-x/79727 "2022-01-08T12:12:39Z")

</div>

Hi everyone, Tried creating a sandbox app using Ruby 3.0.2 with RoR 6.1.4 & 7.0.1. The build crashes in both cases due to an FFI gem native build failure on extconf.rb. Error msg: “/home/bjpcjp/.rbenv/versions/3.0.2/lib…

---

## [Rails app/assets/javascript folder,I dont fount](https://discuss.rubyonrails.org/t/rails-app-assets-javascript-folder-i-dont-fount/78667)

<div class="topic-metadata">

**Author:** [@WormerKing](https://discuss.rubyonrails.org/u/WormerKing)\
**Replies:** 5\
**Last updated:** [August 15, 2021, 3:14pm UTC](https://discuss.rubyonrails.org/t/rails-app-assets-javascript-folder-i-dont-fount/78667 "2021-08-15T15:14:10Z")

</div>

Hello there. I’m learning ruby on rails for web programming and now it’s time to manage javascript files. Since the source I learned is a bit old, it says that there is a folder named /app/assets/javascript in my rails …

---

## [Use db connection (Redis, Postgresql, etc.) inside Ractors](https://discuss.rubyonrails.org/t/use-db-connection-redis-postgresql-etc-inside-ractors/78290)

<div class="topic-metadata">

**Author:** [@collimarco](https://discuss.rubyonrails.org/u/collimarco)\
**Replies:** 1\
**Last updated:** [July 4, 2021, 9:13am UTC](https://discuss.rubyonrails.org/t/use-db-connection-redis-postgresql-etc-inside-ractors/78290 "2021-07-04T09:13:16Z")

</div>

Has anyone used a db connection inside Ractors? The connection pool is always a shared object so I have no idea how to deal with it. See this article for example: They use Redis only outside Ractors to fetch the jobs…

---

## [Shorthand hash syntax in Ruby](https://discuss.rubyonrails.org/t/shorthand-hash-syntax-in-ruby/75795)

<div class="topic-metadata">

**Author:** [@joallard](https://discuss.rubyonrails.org/u/joallard)\
**Replies:** 19\
**Last updated:** [July 16, 2020, 3:36pm UTC](https://discuss.rubyonrails.org/t/shorthand-hash-syntax-in-ruby/75795 "2020-07-16T15:36:12Z")

</div>

As the keyword discussion keeps going on and enflaming passions, there is a Ruby proposed feature I’ve been wanting to talk about for a long time: shorthand hash syntax. You see, very often in code, I will take care to …

---

## [Restricted if and loops inside the views? (BAD PRACTICES)](https://discuss.rubyonrails.org/t/restricted-if-and-loops-inside-the-views-bad-practices/76167)

<div class="topic-metadata">

**Author:** [@jessicafarias](https://discuss.rubyonrails.org/u/jessicafarias)\
**Replies:** 2\
**Last updated:** [September 5, 2020, 11:13am UTC](https://discuss.rubyonrails.org/t/restricted-if-and-loops-inside-the-views-bad-practices/76167 "2020-09-05T11:13:39Z")

</div>

Need an expert or real rails documentation. I’m a beginner on ruby on rails and this is my third project where I decide to use for and some if statements to display information (we are using devise gem) ----index.html.e…

---

## [Bjt(bundle jump to), a quick navigation tool for rubygems package](https://discuss.rubyonrails.org/t/bjt-bundle-jump-to-a-quick-navigation-tool-for-rubygems-package/76054)

<div class="topic-metadata">

**Author:** [@NeoLu](https://discuss.rubyonrails.org/u/NeoLu)\
**Replies:** 0\
**Last updated:** [August 13, 2020, 5:59am UTC](https://discuss.rubyonrails.org/t/bjt-bundle-jump-to-a-quick-navigation-tool-for-rubygems-package/76054 "2020-08-13T05:59:54Z")

</div>

i write rubygem: bjt, is a quick navigation for rubygems, https://github.com/superiorlu/bjt you can navigate gem which has installed by bundler to github、homepage and view source code. thanks.

---

## [Invokable: Objects are functions! Treat any Object like a Proc (like Enumerable but for Procs)](https://discuss.rubyonrails.org/t/invokable-objects-are-functions-treat-any-object-like-a-proc-like-enumerable-but-for-procs/75980)

<div class="topic-metadata">

**Author:** [@Delon\_Newman](https://discuss.rubyonrails.org/u/Delon_Newman)\
**Replies:** 0\
**Last updated:** [July 28, 2020, 3:56am UTC](https://discuss.rubyonrails.org/t/invokable-objects-are-functions-treat-any-object-like-a-proc-like-enumerable-but-for-procs/75980 "2020-07-28T03:56:08Z")

</div>

Invokable Objects are functions! Treat any Object, Hashes, Arrays, and Sets as Procs (like Enumerable but for Procs) Synopsis require 'invokable' require 'invokable/hash' number\_names = { 1 =\> "One", 2 =\> "Two", 3 =\> "…
