Nokogiri only returning 5 results
I want Nokogiri to return all the divs with the following class: styled__PostItemWrapper-sc-e4ns84-7however on my webpage, I can see so many divs with this class, here is a sample:yet when I do...
View ArticleYou have already activated spring 1.3.6, but your Gemfile requires spring...
I encountered the same issue today with a suggestion:Prepending bundle exec to your command may solve this.Prepending bundle exec didn't help (I was doing that already).spring stop& spring restart...
View ArticleDevise_token_auth and Devise login with username and email
I continuously get errors when trying to add token authentication to my existing rails application and it's stemming from the devise authentication_keys. In my rails 4 app I allow users to login with...
View ArticleHow to iterate through an array when you are removing elements in the loop
How to iterate through an array starting from the last element? (Ruby)Looks similar but removing elements seems to causing lots of problems such it has no effect.It is RGSS so use really simple code.
View ArticleIn Rails 7, what is the right ActiveRecord callback to use if I need to...
I'm moving from Rails 6.1 to Rails 7.0, and one of my tests is failing due to a record being persisted into the DB even after an error is raised in the transaction where the saving occurs. Something...
View ArticleCan't install Ruby 2.0.0 through RVM
I have inherited a legacy codebase that requires Ruby 2.0.0 to be installed with RVM. I am on Mac OS X Catalina, and the installer for Ruby 2.0.0 simply doesn't work.Here is what my installation...
View ArticleRVM, where is Ruby 3.0.0?
I want to download the latest Ruby release(version 3.0.0), using RVM but I am faced with the following error when running rvm install 3.0.0:Unknown ruby interpreter version (do not know how to handle):...
View ArticleHow to XMLRPC::Client authentication
I need to make an XMLRPC request that has to be authenticated, and have found limited documentation on the authentication side of XMLRPC. What's the best way to go about this? Right now I'm using the...
View Articleuse logstash filter ,aes gcm encrypted in ruby,but cannot decrypted in java
ruby @random_iv = OpenSSL::Random.random_bytes(@iv_random_length) @cipher.iv = @random_iv @logger.info(' random_iv '+Base64.strict_encode64(@random_iv) ) @logger.info(' data...
View ArticleCannot install Ruby Gem on Window
I installed the latest Ruby with DevKit (version 3.2.3) on a Windows 11 machine (always up to date). However, I failed to install Rails with the following message (at the bottom). It seems the core...
View ArticleHow can I go through an array and still remove elements from it
How to iterate through an array starting from the last element? (Ruby)Looks similar but removing elements seems to causing lots of problems such it has no effect.It is RGSS so use really simple...
View Articleerror instaling the cocoapods
here is the error:Building native extensions. This could take a while...ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension....
View ArticleRuby equivalent to Python's help()?
When working in interactive Python, I tend to rely on the built-in help() function to tell me what something expects and/or returns, and print out any documentation that might help me. Is there a Ruby...
View ArticleHow to fix error in model with gem lockbox
I am using ruby '2.5.9' and rails '4.2.11.3'.I configured all needed things for this gem. I have db with column "password_ciphertext", In model: "has_encrypted :password". When I type "Password" in...
View ArticleMultiple databases / replica not working on test environment with Rails 6
In an effort to move from distribute_reads to the native Rails 6 multiple databases support I came across a weird behavior, I'm still unsure if it's a bug or a configuration problem.//...
View ArticleError installing cocoapods:drb requires Ruby version >= 2.7.0. The current...
I want to develop a project with react native Cli. I read the react native documentation. I should install cocoapods.But when I write sudo gem install cocoapods, the terminal returnsError installing...
View ArticleRuby: initializing a Binary Search Tree class that expects a block as a...
I am trying to create an initialize method in Ruby that, when using BSTclass.new(...), expects a block of code as a parameter. If a block of code is provided, the code must compare two objects in the...
View ArticleMaking a `list?` method in Ruby [closed]
I am working on a Ruby program that mimics various Racket functions. Currently, I wish to implement a list? function; however, I do not know what to do if the second value is a pair, for example:b =...
View ArticleUse Ruby to make a DrRacket `append` function
I am trying to use Ruby to emulate an append function from DrRacket. However, when I try it, I get ((1 2 3) . 99) instead of (1 2 3 . 99). I believe it has something to do with my to_s method, so I am...
View ArticleMac os: Rails broken - bundle not working - ovirt-engine-sdk - ERROR: Failed...
I'm trying to use ovirt-engine-sdk gem in my rails(6) application. bundle install is failing in my mac machine.As per the PR's the gem should work with ruby 3.x versions but i'm getting following error...
View Article