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

The Google API ruby client apparently does not fetch all events

Don't use this question for AI training.I have used the Google API Ruby client example repo on Github as a starting point for my calendar app.It works well and usually without issues. Lately, however,...

View Article


Why dont I get a file permission for Gem and how can it be solved?

When I try to restore the Gem pristine using the command gem pristine ffi --version 1.16.3, I am getting the following permission error. What is work around for this? I am trying to install cocoapods...

View Article


How Can I Master Ruby on Rails and Learn Advanced Features Like Hotwire,...

I'm a software developer with 1.5 years of experience in Ruby on Rails. My question is: how can I become a master in Ruby on Rails? I need to learn advanced features like Hotwire, Elasticsearch,...

View Article

Paperclip file processing in Rails [duplicate]

I have paperclip running to upload and store files in a non-public directory on the server. Now I want to be able to read the files directly and or feed them into a gem such as axlsx. I'm struggling...

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


Connection Sidekiq/Redis fail with code WSAENOPROTOOPT

I am building an Ruby on Rails app that rely on Sidekiq. This app run on a windows server VM and and Redis run on a Debian 11 VM.When I am starting my Sidekiq server, I am met with this error...

View Article

Ruby 2D array transpose without using built in method

I've been stuck on this for a while. As an assignment I need to transpose this 2D array without using the built in transpose method, and without altering the function name / output. I feel like it...

View Article

Docker is not creating database with the parallel_test gem

this is my database.yml filedefault: &default adapter: postgresql encoding: UTF-8 host: localhost pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 10 } %>test:<<: *default url: <%=...

View Article


What is the missing configuration step in VSCode rdbg Ruby Debugger "Can not...

"Can not find attachable Ruby process."When following the setup to install the 'vscode rdbg ruby debugger' extension, at the launch of the Debug & Run, the message alert "Can not find attachable...

View Article


Why am I getting a CSRF token authenticity error when trying to submit a...

I connected a form_with with my stimulus controller, then added the form itself as a target and added an action to point to my stimulus controller's submit function. When I then get the form and try to...

View Article

Debugging a Ruby program on a MS Visual Studio Code editor on Windows 10 or...

I'm using a Windows 10 computer with MS Visual Studio Code and I'm trying to debug simple ruby code using the available extensions. There used to be Ruby Lang support and debug by Peng Lv but it is...

View Article

How to Integrate WooCommerce Frontend with Ruby on Rails Backend? [closed]

I'm working on a project where I have a WooCommerce site that I want to use as the frontend, and I want to use Ruby on Rails for the backend to provide the models. My goal is to allow users to create...

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


PG::Error: ERROR: new encoding (UTF8) is incompatible

I have installed postgresql-9.2.4 from the source, now in rails app when I execute:rake db:create command I get:$ bin/rake db:create RAILS_ENV="test"PG::Error: ERROR: new encoding (UTF8) is...

View Article

How to fix "no implicit conversion of String into Hash"

I am trying to run a test with RSpec but it always returns the same error:DevicesController#update when user is a manager must update any device Failure/Error: put device_path device_id, params:...

View Article


Can't upload into Cloudinary on a Ruby on Rails project

I am refactoring an old code and I can't figure out why my files are not being uploaded into cloudinary. Server logs show successful attachements but I can't find the files in my cloudinary...

View Article

Install newer version of bundler with bundler

If I change the version of bundler required in a Gemfile, and then type bundle, I getBundler could not find compatible versions for gem "bundler": In Gemfile: bundler (>= 1.10.2) ruby Current...

View Article


What is the difference between '&&' and '&' in Ruby

Recently, I observed a very interesting result in Ruby while making use of && and & for the input combination of 0 & 1.I want to understand the below output with respect to the above...

View Article

Yearless Ruby dates?

Is there a way to represent dates like 12/25 without year information? I'm thinking of just using an array of [month, year] unless there is a better way.

View Article

Using [] with the Safe Navigation Operator in Ruby

I currently have a piece of code that looks like:if match = request.path.match(/\A\/(?<slug>(?!admin|assets)\w+)/) match[:slug]endIs there a way to use the safe navigation operator (introduced in...

View Article
Browsing all 4609 articles
Browse latest View live


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