I am trying to build a simple language translating program. I imported the 'language_converter' gem to aid with this goal. I wrote the following code: ...
I am trying to build a simple language translating program. I imported the 'language_converter' gem to aid with this goal. I wrote the following code: ...
. Answers to this question are eligible for a +500 reputation bounty ...
I want my code to show a message every 20% of items processed. I am not very happy with the way I am doing. I am sure have a smarter way The way I am ...
I'm trying to correct the issue in my react native setup, the issue seems to be ruby. To clarify I'm on a Mac M1 So i installed rvm, installed rvm 2. ...
I have a variable session[:pet_profile_tags] that returns an array like ["adult", "activity_low", "overweight"]. I then have an SQLite database, call ...
I've got a problem with Factory bot and logging in as a designated user. I'm trying to run a simple Edit test in rspec. Here it is: And here is my ...
I am integrating Xero API into my ruby on rails application, however when trying to get a Token Set I am getting the below error: Please see the co ...
So, I'd like to create an .rb plugin for a Jekyll theme to be able to use the following Liquid syntax in .md files: {% tab caption %} which, when bu ...
See the terminal commands I used below to upgrade to the newest version of Ruby. It says at one point "ruby 3.2.0 is already installed and up to date" ...
I am looking for a gem so that the user can crop it when choosing a photo. The user clicks on "upload photo" and then when he selects his photo, a fo ...
I have a string str = "race_1: 650m, 215m, 265m, 315m\r\nrace_2: 165m, 215m, 265m, 315m." Expected result: I wanted to split this in a hash like thi ...
I recently updated my app, from doorkeeper 5.3.3 to 5.4.0 but changes to Doorkeeper::AccessToken.find_or_create_for were made apparently, but I can't ...
I'm trying to short poll an external API which doesn't support websockets, so I need to constantly make API requests every few seconds or maybe multip ...
I'm trying to render an index haml view with bootstrap and variables that are defined in the controller. playlists.controller.rb index.haml How ...
If I want to create a stub using rspec, I'd typically do this: allow(my_object).to receive(:my_method).and_return("something else") The JSON respons ...
So I have some code which gives me combinations. I'd like to find the highest driver_points value from each combination and then double its value. He ...
I attempted to integrate the Sweet Alert 2 java-script library for customising standard alert boxes into a Rails 7 application, but I received the fol ...
I am trying to make my personal website using github and jekyll following the instructions on the official website When I reach the part: I receiv ...
on building my new react native project with react native 0.70 using npx react-native init command it gives error while installing bundler that rbenv ...
I have a rails application that has the following dependency structure: I'd like to get loofah to 2.19.1 without updating actionview. Is it possibl ...