229,252 questions
1
vote
0
answers
79
views
Rails ViewComponent tabs not rendering content
Rails ViewComponent tabs not rendering content - active tab issue
I'm building a tabs component using ViewComponent and Stimulus, but the tab content (partials) are not rendering. I believe it's ...
0
votes
1
answer
77
views
"Content missing" Ruby on Rails, Turbo issue
I have turbo rails built into my ruby on rails application, I have a section of the screen I am trying to reload with a button click. more specifically a directory tree. But every time I click said ...
1
vote
0
answers
73
views
Homebrew: formula fails to run with error ZIP does not support timestamps before 1980
I maintain a Homebrew formula on my own tap, and I'm having issues to update it. I'm not sure if this is Python- or Homebrew-related. Here is my formula:
class Kosmorro < Formula
include Language:...
0
votes
0
answers
117
views
Ruby 3.4.7 `require` is VERY slow under Windows 10
I recently converted a large codebase from Ruby 2.1.4 to Ruby 3.4.7 and upon testing these changes in windows 10 I am noticing that the require method on most ruby gems is significantly slower than ...
0
votes
0
answers
84
views
Unable to run single test with Rails/Minitest
We have two almost identically set up Rails (v8.1.1) applications, both with Minitest (v5.27.0) as the testing framework. But in Application A we can run single tests from a file, but not in ...
1
vote
1
answer
234
views
"rails test" doesn't run any tests
I downloaded Ruby and Rails onto my machine, and it looks like this:
% which ruby
/Users/jgodse/.rbenv/shims/ruby
% ruby --version
ruby 3.4.8 (2025-12-17 revision 995b59f666) +PRISM [arm64-...
2
votes
1
answer
111
views
Ruby irb: Autocomplete-usage leads to crash
I start typing on the console and a list with the feasible options appears. Then I use the tabulator-key for going through the options.
Immediately irb crashed and exits. I'm on the console again.
...
0
votes
1
answer
47
views
How to get Details on Discount from a Subscription in Stripe?
There is no API for querying discount information directly. When querying the subscription:
Stripe::Subscription.retrieve('my_sub_id')
# returns:
#<Stripe::Subscription:0xb8a80 JSON: {
..
"...
0
votes
1
answer
35
views
With the Pay gem using stripe, how do you subscribe to a subscription applying a discount?
Consider the following:
@user.payment_processor.subscribe(name: "default", plan: "monthly", quantity: 3)
How do you subscribe with a coupon code attached?
See: https://docs.stripe....
0
votes
0
answers
194
views
gem 'ruby-vips' on Windows: non-compatible forward slashes in the vips-module path
After upgrading Rails from 8.0 to 8.1 and running rails s on Windows, I get VIPS warnings, for example:
unable to load "C:\Ruby34-x64\msys64\ucrt64/lib/vips-modules-8.17\vips-heif.dll"
...
-2
votes
0
answers
81
views
How to properly set up a formatter for Vagrantfiles in VS Code?
Problem:
I am using VS Code to edit Vagrantfile (Ruby syntax). By default, VS Code does not format these files correctly. When I install recommended Ruby extension like Ruby LSP, nothing happens when ...
0
votes
1
answer
72
views
Message body is blank when retrieving emails with Ruby GMail API
I have some code which calls Google's Ruby API to get messages from GMail using list_user_messages.
I know from docs that the returned messages only contain an id and thread_id and therefore I have ...
0
votes
0
answers
44
views
How to define the content of a Resource?
I'm trying to build a POC MCP server using the MCP Ruby SDK.
I have created a couple of tools, and now I need to add the first resource to give access to my posts, but I'm having a hard time figuring ...
10
votes
1
answer
882
views
Ruby on Rails Redis connection_pool wrong number of arguments (given 1, expected 0)
I recently encountered an issue deploying a Ruby on Rails app to production (on Render) whereby the app would not build and rake tasks would not run. The application would build and launch fine in ...
Best practices
0
votes
3
replies
102
views
What's the best setup to use Ruby on Windows?
I'm new to Ruby and I'd like to know the best way to program in Ruby on a Windows computer.
I already have a setup, but it's not working very well: I have VS Code with the Ruby LSP extension, and in ...