Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Browsing all 4619 articles
Browse latest View live
↧

How to Integrate Fastlane with a Remote Azure Repository for CI/CD?

I’m trying to integrate Fastlane with a remote Azure repository to automate my CI/CD pipeline for an iOS project. However, I’m encountering some issues and need guidance on the correct setup.Installed...

View Article


How can I find which operating system my Ruby program is running on?

I want my Ruby program to do different things on a Mac than on Windows. How can I find out on which system my program is running?

View Article


Ruby on rails passenger issue while deploying app

Passenger is showing me same ruby as my app grep passenger_ruby /etc/nginx/nginx.confpassenger_ruby /home/ubuntu/.asdf/installs/ruby/3.0.0/bin/ruby; # Update this to match your asdf Ruby pathBut you...

View Article

How to remove validation using instance_eval clause in Rails?

I would like to enhance existing class using instance_eval. There original definition contains validation, which require presence of certain fields, ie:class Dummy < ActiveRecord::Base validates...

View Article

Error installing Ruby with rvm: "__rvm_make -j8"

I was trying to install latest stable Ruby versions (3.1.x, 3.2.x) using rvm. However, the rvm install command of any of those versions fails when compiling Ruby. For instance, when trying to runrvm...

View Article


How to Open Universal Links with My Rails App?

In my Rails application, I created the file /public/.well-known/apple-app-site-association and set it up to redirect to the iOS app for the /ios_app path.When I test the link by opening it in Notepad,...

View Article

How do I resolve a Ruby Sorbet type error when I cut out a method of a class...

As the title says.Suppose there are two classes (FooController and BarController) that inherit from ApplicationController as follows.When I cut out the method used in both as Helper#helper_method,...

View Article

Ruby on Rails console is hanging when loading

For whatever reason, the Ruby on Rails console refuses to start; it just hangs. I haven't made any changes to my code, and other projects using the same version of Ruby and Ruby on Rails have no issue....

View Article


Trouble Setting up RubyMine 2024.3 with remote Docker config + debugging

I'm currently testing out RubyMine on the free trial to see how the debugging and general coding experience is on the IDE, and I'm running into a few issues. I am currently able to successfully SSH...

View Article


Zlib::DataError: incorrect header check

I have a string, but I don't know the type of encoding.Here's what the raw data looks...

View Article

How to update an existing mailing_subscription in Rails without overwriting it?

I have two models, User and MailingSubscription, where MailingSubscription belongs to User, and User has one MailingSubscription.In my UserInfo class, I am initializing the @mailing variable like...

View Article

Can't push/deploy to heroku because the ruby version is wrong?

I'm trying to push to heroku but I keep getting the following error.. The Ruby version you are trying to install does not exist on this stack.remote: ! remote: ! You are trying to install ruby-2.3.1 on...

View Article

uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)

rails 6.1.7.10ruby 2.6.6.Just did a bundle update to 6.1.7.10 from 6.1.7.8Now running the application I receive the following...

View Article


ArgumentError: Invalid Timezone: Kyiv (ArgumentError) on Ubuntu Ruby On Rails

while Ruby on Rails project setup I faced this error:bin/rails aborted!ArgumentError: Invalid Timezone: Kyiv (ArgumentError) ActiveSupport::TimeZone[time_zone] || raise(ArgumentError, "Invalid...

View Article

What happens when ".move_to_top" from the "acts_as_list" gem fails?

I'm using the acts_as_list gem in my Ruby on Rails application to manage a list of items, where i'm calling the .move_to_top method on an instance of a model that includes acts_as_list.I'd like to...

View Article


What is the Ruby regex for including apostrophes?

I'm currently doing an exercism.io for Ruby and can't pass the last test. The last test reads : def test_with_apostrophes phrase = Phrase.new("First: don't laugh. Then: don't cry.") counts =...

View Article

Amazon MWS API Address format for CreateInboundShipmentPlan

Using the Ruby Gem - Peddler to access the MWS API. We have to send the ship from address. The documentation says it needs to be a hash, but I can't get this to work..ship_from_address = { name:...

View Article


How to check if a gem installed on a machine in bash script?

I want to be able to run a system command from scriptbundle exec rubocopbut only if bundle and rubocop gems installed and exist on a machine. If the checks for the existence of these gems fail, ignore...

View Article

Why do I get an 'ActiveRecord::NoDatabaseError' with Ruby 3.2.2 and MySQL?

Let me start off by saying that I'm not very well versed in Ruby (or MySQL for that matter).I'm trying to spin up Sharetribe Go, which is written in Ruby. So far, I've encountered some issues but...

View Article

ActiveStorage direct upload gives SGID with InvalidSignature (mismatched digest)

I'm working on a new Rails 8 site in local development. I'm using ActiveStorage connected to R2 to upload images. I'm currently integrating EditorJS, specifically for editing the Post model.When I...

View Article
Browsing all 4619 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>