229,268 questions
-1
votes
0
answers
93
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 ...
0
votes
0
answers
83
views
wkhtmltopdf breaks multi-column invoice layout when content grows (Rails 5 / Ruby 2.5)
I am using Rails 5.0.7.2 with Ruby 2.5.1 and generating PDFs from HTML using WickedPDF (wkhtmltopdf).
The invoice layout contains two logical columns:
- left: dynamic invoice items (can grow very ...
3
votes
1
answer
253
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
86
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
49
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:
...
0
votes
0
answers
107
views
How to implement a callback using PyCall?
I would like to access a Python package in Ruby using PyCall.
The non-blocking function in the Python code below activates a callback.
Could you help me implement the callback?
#!/usr/bin/env python
# ...
1
vote
2
answers
134
views
Replace a long case statement involving regex with a hash
I'm parsing a number of text files of different formats. Some are csv, some are xml and some even txt. I have a case statement that checks if a certain string is contained in the first 100 bytes of a ...
0
votes
0
answers
79
views
CocoaPods install error: “version of CocoaPods used to generate the lockfile (1.16.2) is higher than the current executable (1.15.2)” in react native
I'm working on a React Native iOS project using React Native 0.81.4, and I'm getting a CocoaPods–related error when running:
Installing Ruby Gems
Installing CocoaPods dependencies with New ...
-1
votes
0
answers
61
views
Getting Rails 6 error after upgrading from 5.2 to 6.0.6 [duplicate]
Here is the error:
bundle exec rails app:update:bin
/home/ubuntu/.rvm/gems/ruby-3.1.2/gems/activesupport-6.0.6.1/lib/active_support/logger_thread_safe_level.rb:16:in `module:LoggerThreadSafeLevel': ...
5
votes
2
answers
1k
views
Ruby SSL_connect certificate verify failed: unable to get certificate CRL on macOS
m getting an SSL error when making an HTTPS request in a Rails controller (Ruby 3.1.6):
OpenSSL::SSL::SSLError in PurchaseAttemptsController#create
SSL_connect returned=1 errno=0 peeraddr=3.175.45.47:...
-2
votes
2
answers
75
views
Deploy zip to AWS application
I have been asked to look at an old Ruby application that is currently deployed to AWS via CodeShip on successful build.
CodeShip is obviously gong out of service end of Jan 26 and I need to deploy ...
0
votes
2
answers
87
views
error installing rails - alternate installation path possible
I want to install Rails on Windows using the procedure described in the official Ruby guide.
When I enter
gem install rails
I get the error message:
Permission denied @ rb_sysopen - /var/lib/gems/3....
0
votes
1
answer
66
views
Rails logs show `DEBUGGER: Debugger can attach via UNIX domain socket` but VS Code rdbg says "Can not find attachable Ruby process."
I have two Rails apps that I want to debug with the VS Code rdbg Ruby Debugger extension.
For each of them, I have a launch.json that looks like this (abbreviated):
{
"version": "0.2....
5
votes
1
answer
124
views
Symbol#to_s, Array#last, Time.now undefined or no-ops when evaluated using Ruby 3.x C API
For several years I've been using the Ruby C API to add the ability to use Ruby code in my C text editor (a variant of MicroEMACS). This has been working well in Linux Mint 21 (essentially the same ...
Advice
1
vote
1
replies
129
views
Is it possible to embed a Ruby interpreter in a Flutter app?
I see that it is supposed to be possible to embed a Python interpreter in a Flutter app, so can I assume it should therefore also be possible to do this with a Ruby interpreter? (I would be happy ...