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

why won't RVM (Ruby Version Manager) install?

So my goal is to upgrade Rails from 5.0.6 to the newest version on Windows 10 in order to follow a tutorial that uses it. If I understand correctly then i need to install RVM in order to upgrade my...

View Article


RVM clone for windows

Does anyone know of a good RVM clone on Windows? Are there any efforts afoot to create one?(I am familiar with Pik. Without going into detail, I've tried it for about a month and it doesn't cut it. I...

View Article


How to install ruby 2.4.0 in Windows 10

I have ROR projects that need different versions of ruby and one of them need ruby 2.4.0. with Postgresql. I’m using a PC with Windows 10.How can I install more than one ruby version like in Linux with...

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

Rails controller doesn’t render any templates

I have a question about a rails 7 project I’m starting. I have a controller HomeController with one action home.class HomeController < ApplicationController def home render endendI have a root route...

View Article


Failing to load Ruby's tk on Ubuntu

I am really new to Ruby and I need to use this library for a specific GUI project. I am using:Ubuntu 18.04.5 LTS;ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]My problem is similar to the...

View Article

Asdf wont switch local version based on tool-versions or using the local command

I downloaded asdf the other day and am trying to use it with a ruby on rails project I downloaded from Github.When I run asdf install, I get this response:firebase 9.10.0 is already installedruby 2.7.2...

View Article

rbenv not changing ruby version

I installed rbenv according to the github directions. I am running OSX but I have tried this on a Ubuntu 12.04 VM and got the same results. The following is what i get in my terminal when I try to...

View Article


How Do I Correct Error master -> master (pre-receive hook declined) when...

I made changed to a Ruby on Rails app using Ruby 3.0.5. I forgot that I had changed the app setting to upgrade the stack from Heroku-20 to Heroku-22 on the next build. When I tried to upload my changes...

View Article


How to sort result when i use search params in ransack rails gem?

Hello i've working on a rails app ( a marketplace for sports teachers )For moment its work well when i use only sort like this...

View Article

Is it possible to allow multiple attempts on AWS Cognito Passwordless?

I am working with Cognito Passwordless in AWS for my Ruby on Rails API project. I have created the 3 needed lambdas(DefineAuthChallenge, CreateAuthChallenge and VerifyAuthChallengeResponse) and it...

View Article

What is the difference between Gemfile and Gemfile.lock in Ruby on Rails

I am a beginner to Ruby on Rails and I am using Rails 3.0.9. What is the difference between Gemfile and Gemfile.lock in Rails?

View Article

Why do Ruby ERB if statements set variables to nil?

I'm using ERB to generate a set of instructions with location data, and want to accept an offset in my input. When I try to check if that offset is present however, it sets it's value to nil. If anyone...

View Article


Is there a way to use Rspec let! with a scope so it can be used across...

I'm trying to figure out a good way to handle setting rspec memoized variables that will be cleaned up after a set of tests, but not after an individual test.I'd like it to achieve something similar to...

View Article

How to loop 2D array in a anti-clock wise fashion?

Given a 2D array of m x n dimension, how can I loop through them in anti-clockwise fashion?For example:matrix = [ [ 1, 2, 3, 4 ], [ 5, 6, 7, 8 ], [ 9, 10, 11, 12 ], [ 13, 14, 15, 16 ]]1st loop: 1, 5,...

View Article


.zshenv:2: command not found: rbenv

When switching from bash to zsh, I looked up how to resolve an issue with my rbenv folder not being used correctly by zsh and found this:$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"'>> ~/.zshenv$...

View Article

Best way to add comments in erb

How do we add comments in erb files, if we do not want them to be generated into the html content?

View Article


Ruby - Creating hash from array not working [duplicate]

I'm trying to create a lookup table for a bunch of words, by using the sorted characters as keys and arrays of all the words with the same characters as keys.My current code looks like this:words =...

View Article

rvm command not found

I installed rvm with rails, from the official website of RVM, I specified the command suggested by the tutorial.When the installation my system has rails 4.0.0, rvm 01/23/12, ruby 2.0.0, bundler gem...

View Article

Ruby strptime beginning and end of string

Is it possible to parse a string with Ruby Date.strptime that constrains the beginning and end of the string? What I'm looking for is a more strict way to parse strings as dates that will throw an...

View Article
Browsing all 4616 articles
Browse latest View live


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