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

how to install ruby on Big Sur

Due to the age of my MacBook Pro, the most recent operating system I can update to is Big Sur, 11.7.2 (this is the OS the Apple Store genius bar installed for me today). After getting the new OS, I...

View Article


Unable to Load Gems from Lambda Layer in Lambda Function Using Single Dockerfile

I'm facing an issue while attempting to load gems from a Lambda layer within a Lambda function, both defined in a single Dockerfile. Here's my current setup and the problem I'm encountering:Current...

View Article


Ruby Version Manager

I'm new to Ruby and currently using Windows 10. I'm facing difficulty installing RVM. Since I work on different projects with varying Ruby versions, I want to use RVM to manage them easily. Currently,...

View Article

Binding.irb how to step to the next line when debugging with IRB

when usnig Binding.irb how do i..step to the next line when debugging with IRB?Or do i just place loads of binding.irb lines for everytime i want to pause execution for debugging purposes?

View Article

How do you reverse order in ruby

How do you write a code snippet in Ruby that prints out, in reverse order, every multiple of 3 between 1 and 200?This is the code I have so far:(1..200).each do | i | ##loop it then if i % 3 == 0

View Article


Troubleshooting Ruby App Deployment on cPanel with GoDaddy Server

I'm trying to run a simple Ruby app with cPanel (version 116.0.11) on a GoDaddy server.I've read that many of the Ruby related functions got deprecated, but I'm wondering if it's not possible any more...

View Article

error when installing Ruby 3.1.4 on Mac M1 with asdf

I'm trying to install ruby 3.1.4 with asdf on a Macbook Pro but am getting a constant error of:6557 compiling ripper.c6558 readline.c:1903:37: error: use of undeclared identifier...

View Article

/usr/bin/env: 'ruby': No such file or directory when deploy ruby on rails app...

I am trying to deploy my app on heroku. Build succeeded, but when I runheroku run rake db:migrateI get/usr/bin/env: 'ruby': No such file or directoryHow to fix that?All the other stuff work nice,...

View Article


Ignoring GEM because its extensions are not built

On both my work and home computers, I recently upgraded Ruby to 2.3.1, using ruby-install. I use chruby as my Ruby switcher.I started seeing this warning in my terminal:Ignoring bcrypt-3.1.11 because...

View Article


Graph Database in ruby?

Are there any graph database in ruby . i have heard of neo4j in Jruby , Are there any pure implementation of graph database in ruby ?

View Article

Getting list of all vendors?

I am doing the following to take the vendor out of the products and using unique to get it to the front end to list each vendor on a store.Controller:@count = ShopifyAPI::Product.count@n = 1@products =...

View Article

Problem installing openssl 2.2.1 gem in MacOS

I am working in a project where the openssl (2.2.1) gem is used and ruby 2.7.5 is used. I successfully installed Ruby 2.7.5 with rbenv (ruby-build helped install it by downloading openssl...

View Article

How can I have ruby logger log output to stdout as well as file?

Someting like a tee functionality in logger.

View Article


Why is Rails Console command (rails c) not working? [duplicate]

Here's what happens when I input the rails console command:Running via Spring preloader in process 29953Loading development environment (Rails 6.0.0)Traceback (most recent call last): 37: from -e:1:in...

View Article

What in exifr causes this temp file to get closed?

In this piece of Ruby code that processes an UploadedFile using exifrf = uploaded_file.tempfilep "1 #{f.closed?} #{f.instance_variable_get(:'@unlinked')}"#1 EXIFR::JPEG.new(StringIO.new(f.read))#2...

View Article


JavaScript not working on Ruby on Rails project

I'm trying to follow this (somewhat outdated) Ruby on Rails tutorial and I'm having trouble getting any JavaScript to work. More specifically, I have this js...

View Article

Error running '__rvm_make install'

I'm new to programming trying to add Ruby 2.2 using RVM and receiving the below error. I've run rvm get stable and tried reinstalling, but getting the same error.$ rvm reinstall ruby-2.2.0Searching for...

View Article


Veil Installation Stuck at wine

i am trying to install veil framework by./setup.sh --force but installation stuck when wine start. i am gonna show you some codeE: Error, pkgProblemResolver::Resolve generated breaks, this may be...

View Article

Global exception handler in Ruby

Is it possible to create a global listener for an exception in Ruby?I want to catch all exceptions in my script for StateMachine::InvalidTransition so my application can respond with sending an email...

View Article

Enumerize rails does not allow nil values

I'm using the enumerize gem on my project, and when I add it into a column, in which I want to allow nil values, my test brokes up but not the insertion on the console.MY_TYPES =...

View Article
Browsing all 4604 articles
Browse latest View live


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