Category "ruby"

Sidekiq - SearchService::Errors::DefaultSearchException

While running Sidekiq I am getting this error: #<SearchService::Errors::DefaultSearchException: SearchService::Errors::DefaultSearchException> This is o

Ruby on Rails - javascript(s) folder and application.js missing

I'm new to Rails and trying to use some Javascript, but everywhere I go I see application.js mentioned, but it's nowhere to be found in my directories. I follow

Capybara::ElementNotFound: Unable to find checkbox that is not disabled

I've checked all the SO questions I can find related to this issue. The rest of the form works and the test passes if I remove the validation that a PlanTemplat

Can´t install tiny_tds in Windows 10

When I run: gem install tiny_tds The output tells me that I need FreeTDS installed. Next, it shows me some configuration options and that I'll probably need an

gem install puma -v '4.3.7' fails on Mac OS Big Sur Ruby 2.6.3 Bundler version 2.2.19

symptom: gem install puma -v '4.3.7' crashes • Mac OS Big Sur 11.4 • Ruby 2.6.3 • Bundler version 2.2.19 • Homebrew 3.1.9 jason@ % gem

app.css error when compiled with ruby sass from app.scss

I'm trying to build my project with gulp, and the app.scss file is compiled with ruby sass. The problem is the app.css gets error and cannot be applied to brows

Rspec and SQL: Index 0 is out of range

I am trying to run my code and I get the following error: Failure/Error: Bookmark.new(id: res[0]['id'], title: res[0]['title'], url: res[0]['url']) IndexError:

How do I return string from fastlane to jenkins groovy variable?

Have a lane in fastlane as lane :ipa_path do |options| “<ipa path>.ipa” end How to store string returned by ipa_path lane in groovy script v

How to set path correctly from RBENV shims on Mac M1 with zsh

I'm having trouble setting up the rbenv paths I follow the instructions as specified here: rbenv installation page I run the command on a zsh terminal: rbenv in

twistlock scan on an image showscompliance issue

I am trying to do a twistlock scan on an image and I can see a compliance error stating Private keys stored in image I have not hardcoded any keys in the image.

how to get specific value cell index using rubyXL gem

I have a static header in my excel template and I want to find each column cell index using cell value. Example: Row1: cell1, cell2, cell3 I want to find the ce

How to make data:{confirm..} work in rails 6 | button_to

my confirm popup not working in rails 6. I added gem 'jquery-rails' to GEMFILE and run bundle install. I also added //= require jquery //= require jquery_ujs t

What do I write to Slack's Socket-Mode websocket endpoint to send a chat message using Ruby?

I am trying to write a simple Slack chatbot for my team using Ruby. It's a bit rough because Slack doesn't have official support for Ruby. Nevertheless, I've be

Could not find 'minitest' (>= 5.1) among 39 total gem(s)

Situation: I am trying to setup Cocoapods. I'm on OSX 12.2. I have installed Ruby with Homebrew. When I run gem list minitest (5.15.0) is listed. Running pod se

Rails helper doesn't have access to base class method

I've got helper which I'm including inside Create service class. This Create service inherits from Base class and I'm including ::Imports::HashFieldsBuilder to

Rails/Heroku, switching between databases multiple times yields "can't create Thread: Resource temporarily unavailable" error

Setup: Ruby 2.5.9, Rails 5.2.2, Heroku-18, Postgres Issue: I'm running a task on my Heroku staging database which compares data from two different databases (bo

"Neither readline nor libedit was found" on Raspbian 11 (bullseye)

I am trying to compile Ruby and I am getting the following: root@raspberrypi:~/ruby-3.1.2# make -j4 ... linking ruby make[2]: Leaving directory '/root/ruby-3.1.

Associate Active Record tables through non-primary, non-unique column in Rails

I have a table "films" whose schema looks like this: create_table "films", force: :cascade do |t| t.integer "tmdb_id", null: false t.string "language_is

Associate Active Record tables through non-primary, non-unique column in Rails

I have a table "films" whose schema looks like this: create_table "films", force: :cascade do |t| t.integer "tmdb_id", null: false t.string "language_is

BUILD FAILED (Ubuntu 20.04 using ruby-build 20210119)

I'm using rbenv and in Ec2 instance I'm trying to install a ruby different version but when I execute rbenv install 2.7.2 following errors occur. Downloading