11 questions from the last 30 days
0
votes
1
answer
29
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
21
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
21
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
127
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
64
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
69
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
42
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 ...
-2
votes
0
answers
111
views
Tab trap on modal
I was trying to fix a bug in the framework I use where when I went to 'share' a comment, a modal would pop up with some options, the problem was that I couldn't tab through the modal.
I managed to fix ...
9
votes
1
answer
490
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
2
replies
93
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 ...
-3
votes
0
answers
52
views
Redmine / Mysql 8 (in docker) TLS/SSL error: self-signed certificate in certificate chain [duplicate]
I setup a new redmine installation with mysql 8 - but I get SSL / TLS certificate errors.
I have no clue whats going wrong in this basic setup - normally I use postgres ...
Here is my compose file:
...