I am upgrading a Rails 6.1.4 application from Ruby 2.6.10 to Ruby 2.7.6. With Ruby 2.7.6, WebMock no longer matches the Regular Expressions that worked perfect
I have a form and when I set a value, the value is displayed in the field, how to not display the value but keep the existing values when submitting the form: H
When there are only two states for instance variable "a", either it has a value or not, and there is only one possible state for instance vari
I'm using Ruby scripts to to round-trip a SKOS vocabulary definition in Turtle format through to a spreadsheet (via CSV) and back to allow non-technical people
I'm getting the error in the title when I deploy my Rails 5 app. I recently updated my Gemfile to include some more recent versions. I don't have any issues on
I'm facing the following problem: I'm using an external API that returns a image hash that has multiple images. When I enter the show page for the element that
How to live changing in ruby, I receive API but it looks like: the number is 1 the number is 2 the number is 3 it's normal because inside the loop and when I u
I'm trying to deploy a simple Rails app in heroku but I'm getting this message in the heroku logs: PG::UndefinedTable: ERROR: relation "entries" does not exist
I've been writing tests with instance_doubles to stand in for message chains when I need more granularity in the midst of the chain. But, I'm wondering if I'm d
I'm trying to learn the programming language Ruby and I am following a freeCodeCamp.org tutorial. I've installed Atom and installed Atom Runner (I believe that'
I'm new to ruby on rails. I installed ruby, sqlite3, node and yarn, run gem install rails and gem install sqlite3. when I run rails new <app_name>, I got
I've got these three classes class Totalizavel def retorna (qnt, valor) total = qnt * valor return total end end class Venda < Tota
I'm having problems trying to request an endpoint that is using TLS 1.3 require 'base64' require 'openssl' require 'rest-client' auth_payload = { grant_type:
I have a couple simple queries and I'm not sure what the best practice is. I've written them in 2 ways which produce the same result. Which is preferred? Or i
I'm using gem stripe in rails 7 and I'd like to access the checkout page to make the payments or cancel the order, however, since it is rails 7 (and does not ha
I am coding my own ERP. For the People (model class) I have the following validations: class People < ApplicationRecord # some code for N:M relations #
I have a Rails 5 API only app and want to send cookies in the response of a JSON request. When I use ActionDispatch::Cookies to set a cookie in the response of
When I run gcloud app deploy I get the message: ERROR: (gcloud.app.deploy) The required property [project] is not currently set. You may set it for your current
I have a main Ruby on Rails app, which generates links and associated PDF files. What I want is to generate a QR code for each one of the links, so I can paste
I have Projects model: class Project < ApplicationRecord acts_as_tenant :account has_rich_text :description validates :name, :progress, :priority, :st