No route matches [GET] "/users/sign_out" i can delete my account but not log out
hello guys please help me about this errorok here is my error No route matches [GET] "/users/sign_out"and this is all routesPrefix Verb URI Pattern Controller#Action new_user_session GET...
View ArticleUpload to Rails Active Storage Using Javascript
I am attempting to upload an image to active storage in my Rails backend. I currently have the backend setup correctly but I am struggling to understand FormData. Here is what I have. The on change...
View ArticleBundler using wrong Ruby version
When I try to start my Rails server, I get the following error:$ bundle exec rails sYour Ruby version is 2.3.7, but your Gemfile specified ~> 2.3.8I don't understand why that happens though, since I...
View Articleruby - ovirt-engine-sdk-ruby - Error during SSO authentication,...
Ruby ovirt-engine-sdk is not working after mac update.Current mac version: Sonama - Version 14.6.1Getting following Error when i try to connect ovirt engine:create_access_token': Error during SSO...
View ArticleDisplay button for each index
I have to show barcode button for unpaid payments.Am looping the unpaid payments but still two barcodes are displayed for one payment.Here is the code snippet.I have two table payments and payment...
View Articlerb-sys Failed to build on Windows latest: defines.h:43:11: fatal error:...
I have a Tauri project and got a compilation error on Windows's latest runner on GitHub action:error: failed to run custom build command for `rb-sys v0.9.100`Caused by: process didn't exit...
View ArticleError 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 ArticleInstalling ruby with ruby-install causes build error on Mac M1
When installing ruby 2.6.6 or 2.7.2 using ruby-install on mac M1, the following error occurs. Ruby 3.0.0 works fine however anything older will error out with readline and not allow ruby to...
View ArticleRSpec Stubbing out Date.today in order to test a method
I want to test a method that follows one path if the current date is between Jan 1st - Aug 1st, or it follows another path if the current date is between Aug 2nd - December 31st. example:def...
View ArticleWhy doesn't this ActionCable broadcast work in test?
I'm trying to improve the tests for my ActionCable system but I'm having a hard time. In test, it seems like my stream_from("something") { ... } handlers aren't actually called. I was trying to debug...
View ArticleInstall ruby 3.3.x with rvm, missing psych gym
I'm installing ruby 3.3.x with rvm by rvm install 3.3.5, no apparent error shown. However, I noticed psych gem folder is empty,even though it's there in the gem list as psych 5.1.2. this causing...
View ArticleRuby on Rails redirecting with OPTION instead of GET
my code is redirecting with a options requisition instead of a get, what could cause that?the redirecting comes from here: def destroy sign_out redirect_to...
View Articlehow can I disable colored output when hitting ruby warnings and errors?
ruby 2.7.2 on linuxI run ruby in a way that creates error messages. Part of the messages come out white which, on the very light xterm background I'm using, is unintelligable. Example...% /usr/bin/env...
View ArticleIssue Connecting Next.js Frontend to Ruby on Rails Backend via WebSockets on...
I'm working on connecting my Next.js frontend to a Ruby on Rails backend using WebSockets. Both apps are deployed on Kubernetes.My frontend is accessible at test.com.I have my WebSocket server running...
View ArticleAccess generically to computed property of an activated record
I am working on a Ruby on Rails application, rails version 4.2.1. And I am not familiar with subtleties of Ruby on Rails.In some generic component of my application there is some code like...
View Articleruby raised another command is already in progress
I would like to enter a large amount of data in my file.To do this, I am thinking of using postgresql's asynchronous processing to do the query.The code is as follows.raw_conn =...
View ArticleAWS ALB + ECS + gRPC + Ruby "Trying to connect an http1.x server"
I am building gRPC server with Ruby and trying to request it from Ruby Client through AWS ALB.We deploy it to AWS ECS on FargateproblemWhen I try to send requrest throgh ALB, I got the error...
View ArticleHow to make "pod install" command use Ruby 3.3.5?
On my MacOS Sonoma 14.6.1 I had system Ruby 2.6.10 and installed the latest Ruby version 3.3.5.Then I tried to build a project with CocoaPods and some errors have occurred during the build. When I...
View ArticleMySQL, Rails ActiveRecord date grouping and timezones
I want to count users by creation date.When I query my last user, I have:> User.last.created_at => Thu, 07 Aug 2014 21:37:55 BRT -03:00When I count users per date I get this:>...
View ArticleHow to list all files in an s3 folder using AWS-SDK gem in ruby on rails
I wanted to show a list of all files in an s3 folder so I can get all the last modified dates so I can determine what files has been changed.I tried using objects.with_prefix('Folder1') it give me a...
View Article