Questions tagged [ruby]
Ruby is a multi-platform open-source, dynamic object-oriented interpreted language. The [ruby] tag is for questions related to the Ruby language, including its syntax and its libraries. Ruby on Rails questions should be tagged with [ruby-on-rails].
ruby
229,224
questions
0
votes
0
answers
48
views
Rails: problem with handle redirect with turbo_stream in apps
In the application, when creating a feature, it was necessary to add hotwired/turbo-rails.
// app/javascript/application.js
import "@hotwired/turbo-rails"
import "controllers"
...
0
votes
1
answer
81
views
Your Ruby version is 2.6.10, but your Gemfile specified 3.3.0
I've gone through all of the fixes for this. I do not/nor have I ever had ruby 2.6.10 installed on this machine. I'm not sure where this came from. I tried regressing to ruby 3.2.0 for something but ...
0
votes
0
answers
73
views
Error while installing ruby on rails on windows 11
I'm trying to install Ruby on Rails, but when I run the command "gem install rails", PowerShell throws this error:
C:\Users\milos>gem install rails
Using rubygems directory: C:/Users/...
2
votes
0
answers
162
views
How to call "unpack" on a string in ruby C-api?
I am trying to use the ruby C-api to call unpack on a ruby string.
Here is my current code:
#include "ruby.h"
#include <stdio.h>
#include <unistd.h>
VALUE dangerous_func(...
0
votes
0
answers
32
views
Ruby on Rails, threading in DelayedJob workers
I'm working on a Ruby on Rails web project that runs on Puma server, also has several DelayedJob Workers on different servers.
The project generates some special logs that i want to send to AWS Sqs ...
0
votes
1
answer
168
views
Rails Heroku deployment fails: Could not find gems, Failed to install gems via Bundler
So I have a Rails application that I am trying to push to Heroku. When I run git push heroku master, I get:
$ git push heroku master
Enumerating objects: 1369, done.
Counting objects: 100% (1369/1369),...
0
votes
0
answers
26
views
JBuilder and Rails 6.1
I am working on a POC for switching from active-model-serializer to jbuilder. I am very sad to see AMS being relegated to unsupported status. It's going to take forever to convert our 200+ serializers ...
0
votes
0
answers
61
views
Error installing msgpack (1.4.4) on ruby 3.0.4 on M1 mac
While installing msgpack gem I'am receiving this error:
/Users/orbanbotond/.frum/versions/3.0.4/lib/ruby/gems/3.0.0/gems/msgpack-1.4.4/ext/msgpack
make DESTDIR\=
compiling buffer.c
compiling ...
0
votes
0
answers
306
views
'Error running pod install' while running Flutter app on iOS simulator after setting up Firebase in VSCode
After I setup my Flutter application with Firebase and connecting the app with the Firebase console, I am not able to run the application in the iOS simulator.
My system description is - 2017 Macbook ...
0
votes
0
answers
67
views
Ruby REPL's errors and REPL freezing
I'm new to Ruby and am currently working on a scraper on vsc (Windows OS). I downloaded the nokogiri, watir, and pry gems, and I've been opening a pry REPL to run a few basic commands that test my ...
0
votes
1
answer
66
views
Rails/Ruby join using calculated field
I'm trying to work out if/how I can use a field from a joined table in a calculation inside a where statement.
Plot.joins(:developer)
.where('plots.reservation_release_date < ?',developer....
0
votes
1
answer
65
views
Ruby's Net::SSH is limited to 3 authentication tries while OpenSSH client is not
I'm having a really weird problem where when I connect to an SSH server (that has a pretty standard default configuration, including a default MaxAuthTries of 6) using Net::SSH, the connection fails ...
0
votes
0
answers
23
views
LCNAF plugin archivesspace
I have to integrate LCNAF plugin in a website.
For the purpose I a configured the appconfig file and included the 'lcnaf' term. Additionally, in the plugins folder I have included the lcnaf files that ...
0
votes
0
answers
33
views
puts method not working on cucumber test report
I want to print the text I copied from the web page on to the cucumber html test report step but I can only see it in the console does anyone know how to resolve this?
Then ('on step 5 should show ...
2
votes
3
answers
103
views
Remove invalid bytes, keep valid UTF-8 (in Ruby 2)
(I posted a similar problem here, but this new question is not a duplicate).
Using either Ruby 2.6.10 or 1.9.3 is a requirement that the software I'm developing here must run with these:
Small ...