Skip to main content
0 votes
0 answers
42 views

With the following code: require 'nokogiri' class MyDocument < Nokogiri::XML::SAX::Document def start_element_namespace(name, attrs = [], prefix = nil, uri = nil, ns = []) a = attrs.map ...
jean marc's user avatar
3 votes
0 answers
56 views

I've upgraded Ruby from Ruby 3.1.7 to Ruby 3.2.8; after that, I've encountered a situation where my ruby bundle works for the first deployment on Heroku-deployed servers, but all subsequent ...
G987's user avatar
  • 51
1 vote
1 answer
85 views

I have the following Unix timestamp: time = Time.at(-8_640_000_000_000) # => -271821-04-19 19:00:00 -0500 time.strftime('%B %-d, %Y at %-I:%M %p') # => "April 19, -271821 at 7:00 PM" ...
Droid's user avatar
  • 67
Advice
0 votes
5 replies
48 views

My question could apply to many other ruby frameworks I guess. But here I have the case while programming a Jekyll project. Let's see this Jekyll plugin as an example: require 'dotenv' module Jekyll ...
Quentin's user avatar
  • 1,173
-3 votes
0 answers
46 views

I'm looking at the characters in this pdf: https://www.unicode.org/charts/PDF/U1D100.pdf For example, the treble clef symbol which has a unicode value of '1D120' In ruby 1.8.7, how would i convert ...
Max Williams's user avatar
  • 33.1k
-4 votes
1 answer
109 views

I have a git post-commit hook written in Ruby. #!/usr/bin/env ruby require "git" # ... It works perfectly fine from the console. However, when it's run from IntelliJ IDEA I see: 2026-02-18 ...
pixel's user avatar
  • 26.9k
-3 votes
0 answers
102 views

text = "hello world" text.sub(/(hello)\s(world)/) { "#{$2.capitalize} #{$1.capitalize}" } This is the only way I know how to do this. text.sub(/(hello)\s(world)/, '\u\2 \u\1') ...
def avi's user avatar
  • 858
0 votes
1 answer
179 views

I wrote a small Excel COM automation code that works on my machine. Since everything worked fine, I have decided to test it on a client machine. Only formulas didn't work. I always get #NOME? for ...
AlwaysLearningNewStuff's user avatar
1 vote
1 answer
87 views

I have a non-Rails Ruby application that uses Sprockets and Sinatra. It currently processes SCSS using the sass and sprockets-sass gems, which have long been deprecated in favor of processing by dart-...
spamguy's user avatar
  • 1,582
1 vote
2 answers
101 views

I'm working on a Rails application containing several models based on Mongo documents. I'm eventually bumping into an Mongoid::Errors::UnknownAttribute exception when mongoid Copyable#clone method is ...
lmtaq's user avatar
  • 682
Advice
0 votes
2 replies
72 views

I'm building an MCP server using Sinatra with Fast-mcp (HTTP-based Rack middleware). I'm encountering confusing behavior with Rack::Protection that doesn't align with what I understand from reading ...
Tomax47's user avatar
  • 31
1 vote
1 answer
132 views

Rails ViewComponent tabs not rendering content - active tab issue I'm building a tabs component using ViewComponent and Stimulus, but the tab content (partials) are not rendering. I believe it's ...
Ellis Brookes's user avatar
0 votes
1 answer
103 views

I have turbo rails built into my ruby on rails application, I have a section of the screen I am trying to reload with a button click. more specifically a directory tree. But every time I click said ...
ym733's user avatar
  • 15
2 votes
1 answer
115 views

I maintain a Homebrew formula on my own tap, and I'm having issues to update it. I'm not sure if this is Python- or Homebrew-related. Here is my formula: class Kosmorro < Formula include Language:...
Deuchnord's user avatar
  • 305
0 votes
1 answer
115 views

We have two almost identically set up Rails (v8.1.1) applications, both with Minitest (v5.27.0) as the testing framework. But in Application A we can run single tests from a file, but not in ...
Jacques's user avatar
  • 191

15 30 50 per page
1
2 3 4 5
15283