Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
68 views

I have a new Rails 8 application built with Bootstrap, Ruby 3.4.7, MySQL, and Haml, running in Firefox 145. It all looks good, except for the uncaught exception: Uncaught SyntaxError: import ...
willyab's user avatar
  • 332
0 votes
0 answers
49 views

I have a Rails 8 app that is pretty bare boned. I'm just setting up my dependency injection container, which registers relevant services here at: config/initializer/command_bus.rb The issue is that I'...
Derek's user avatar
  • 8,698
-3 votes
0 answers
90 views

When I run the command on docker container backend: psql -h localhost -p 5432 -U postgres I receive the following error: psql: error: connection to server at "localhost" (::1), port 5432 ...
andbri321's user avatar
0 votes
0 answers
45 views

The Problem Statement My Rails 8 application uses MiniMagick to composite multiple color JPEG/PNG images onto a single blank page, draw bounding boxes, and output the result as a PDF. When running the ...
Ajit Dhanje's user avatar
0 votes
1 answer
47 views

At 10 a.m. an object becomes active and visible to the user. seconds_since_midnight.to_i at 10:00 is 36000, but that is not timezone aware. application_controller sets a tenant and its timezone, based ...
Jerome's user avatar
  • 6,355
0 votes
0 answers
53 views

Here is the error: bundle exec rails app:update:bin /home/ubuntu/.rvm/gems/ruby-3.1.2/gems/activesupport-6.0.6.1/lib/active_support/logger_thread_safe_level.rb:16:in `module:LoggerThreadSafeLevel': ...
Asher Namanya's user avatar
0 votes
2 answers
58 views

I'm struggling to connect from my Rails deployment to an Atlas Cluster. This is my MONGODB_URI: mongodb+srv://JohnDoe:****@cluster0.*****.mongodb.net/XYZ_prod?retryWrites=true&w=majority The ...
Thomas's user avatar
  • 78
0 votes
0 answers
55 views

The following params are submitted in different actions the following manner ?acc_ids%5B%5D=246&acc_ids%5B%5D=247&acc_ids%5B%5D=248 with Parameters: {"acc_ids"=>["246", &...
Jerome's user avatar
  • 6,355
0 votes
0 answers
52 views

I am confused about generating the PDF. I have a case Table of content A-1 .......................................................................... 2 B-2 ..............................................
LihnNguyen's user avatar
0 votes
2 answers
80 views

I want to install Rails on Windows using the procedure described in the official Ruby guide. When I enter gem install rails I get the error message: Permission denied @ rb_sysopen - /var/lib/gems/3....
Kurt Hoffmann's user avatar
0 votes
1 answer
62 views

I upgraded an app from rails 5.2 to 8.0.4, still using sprockets to load all assets, but everything was working properly. I then added importmaps and migrated all my javascript files to importmap. I ...
Robert Reynolds's user avatar
0 votes
1 answer
100 views

I have a button_to tag, with data: {turbo_method: :post} This works. When I change it to link_to it breaks with Can't verify CSRF token authenticity. Is this a bug? It seems that it should work ...
Mitch VanDuyn's user avatar
0 votes
1 answer
51 views

I'm currently trying to migrate to activeadmin 3.0.0, which requires ransackable 4.3.0. This breaking change require to add ransackable_attributes and ransackable_associations as class methods in my ...
Monica Quiros's user avatar
0 votes
1 answer
73 views

Installing chart.js to Rails 8 with importmap Install package bin/importmap pin chart.js Pinning "chart.js" to vendor/javascript/chart.js.js via download from https://ga....
150Years's user avatar
  • 101
Best practices
0 votes
3 replies
52 views

I’m working on a NestJS + TypeORM backend and ran into an architectural question as my codebase evolved. Initially, I had a simple setup: InvestorProfileController handles PATCH /investor-profile ...
bugsyb's user avatar
  • 6,151
0 votes
1 answer
44 views

I have two Rails apps that I want to debug with the VS Code rdbg Ruby Debugger extension. For each of them, I have a launch.json that looks like this (abbreviated): { "version": "0.2....
Sam's user avatar
  • 6,710
Tooling
0 votes
0 replies
54 views

How are people building form components with Phlex? Using the gem Superform, calling Rails form_with helper in the Form component, or something else? My current form field helpers are pretty ...
nimmolo's user avatar
  • 627
Best practices
2 votes
2 replies
112 views

Two tables with identical attributes exist: itemised_origin_rows and the target second table itemised_rows . They exist because archival requirements are different: based on certain transactions they ...
Jerome's user avatar
  • 6,355
0 votes
1 answer
92 views

I have this rails controller: module Admin module Settings class PrintersController < ApplicationController # BaseController end end end I believe I should be able to match a layout ...
Mitch VanDuyn's user avatar
0 votes
0 answers
65 views

I migrated my application to Rails 8 some time ago, and at the time noticed that it wasn't using propshaft, it was still running sprockets even though the Gemfile might suggest otherwise. I wasn't too ...
FBtLL's user avatar
  • 39
3 votes
1 answer
109 views

I'm extending the Devise invitations controller to lookup the email of the invitee to pre-populate the registration form. I'm getting an error: #<AbstractController::ActionNotFound: "Could not ...
Aaron Humerickhouse's user avatar
1 vote
0 answers
81 views

A minitest is launched and ends up running, but in the meantime is now generating a series of warnings. Mise was very recently installed to replace rbenv. The warnings are: .local/share/mise/...
Jerome's user avatar
  • 6,355
0 votes
1 answer
45 views

Problem Description I'm trying to set up GraphQL subscriptions in a Rails 7 backend using ActionCable. The subscription works from the Rails console — I can broadcast events and they are received. ...
Radosław Matteo Sakowicz's user avatar
0 votes
1 answer
76 views

If I use: Rails.error.handle do my_possible_error_code end The possible error is swallowed and never raised. If I use: Rails.error.record do my_possible_error_code end The possible error is ...
fguillen's user avatar
  • 39.5k
1 vote
1 answer
73 views

I set up Ahoy to work with my Rails app and ahoy.track each time a user loads a page. It's working neatly but I'd also like to track some more client-side actions such as a button clicks, moving ...
Necrom's user avatar
  • 11
0 votes
0 answers
103 views

I have a rails app I am trying to reduce signup drop off on by implementing a 'sign up with spotify' flow for mobile users which does not redirect users to the spotify web page, but instead ...
MikeyG's user avatar
  • 55
0 votes
0 answers
49 views

I'd like to attach a debugger (in my case, VS Code) to code used in a Rails generator. I expected this command to work: rdbg --open -c -- rails g my:generator As described at https://github.com/ruby/...
Sam's user avatar
  • 6,710
0 votes
0 answers
45 views

I have been tasked with setting up Google Tag Gateway for the website at work, and am struggling to understand how to get this done. We use rails backend and ALB and Route53 to route requests to our ...
Eric Prostko's user avatar
1 vote
1 answer
111 views

After upgrading from Rails 8.0.3 to Rails 8.1.0, my application crashes with an undefined method 'arity' for an instance of Hash error. The issue appears to be related to the acts-as-taggable-on gem, ...
M. Salman's user avatar
0 votes
1 answer
86 views

I can't get access to a param that i'm permitting. My log is showing this for the params Started POST "/user/update_preferences.json" for 127.0.0.1 at 2025-10-25 16:46:46 +0100 Processing ...
Max Williams's user avatar
-1 votes
1 answer
160 views

Background: I'm using Rails 8 out of the box and this is my first time working with Propshaft. Goal: Create a custom environment that behaves identically to Rails' default "development" ...
Andrew Albrecht's user avatar
0 votes
0 answers
103 views

I have a Rails 6.1 application that previously used to serve assets from /assets (asset_host was unset) Recently I've changed the asset_host to use //assets<X>.example.com/ where X would be a ...
Nick M's user avatar
  • 2,552
-1 votes
1 answer
90 views

Issue: jsbundling-rails can not use yarn build on production server. Cause: Inability of to access nvm packages through ssh. After login on server: which yarn > /home/[user]/.nvm/versions/node/v25....
Tim's user avatar
  • 3
0 votes
1 answer
100 views

My script to start the Rails server does not work when I use crontab. I have a script to monitor whether Puma is running or not, and subsequently start the Rails server in production. When I execute ...
Cleber Reizen's user avatar
-1 votes
1 answer
59 views

I am trying to dynamically render form errors using a turbo-frame. This works great when there is an error and correctly to populates the form with the submitted params, but when the form submit is ...
gjkliewer's user avatar
  • 772
1 vote
1 answer
93 views

I realised that Rails 8 generated automatically a service worker file for a new app. It seems to be useful for web push notifications, and I would like to use push notifications but I do not know how ...
Chiara Ani's user avatar
  • 1,135
0 votes
0 answers
57 views

It is somewhat unclear to me given the rails guide instructions how to define the verified_user. The documentation suggests: if verified_user = User.find_by(id: cookies.encrypted[:user_id]) if ...
Jerome's user avatar
  • 6,355
2 votes
3 answers
223 views

I recently upgraded to macos tahoe now my rails app crashes with a segmentation error bug whenever i make an HTTPS request. It should be noted that i do not experience any issue when i make http ...
Enoma Victor's user avatar
0 votes
2 answers
71 views

In Capistrano 2 the deploy:cold task looks like this: namespace :deploy do task :cold do update migrate start end task :migrate do ... end end I would like to create a ...
Starscream512's user avatar
0 votes
0 answers
62 views

a view block within a turbo frame tag has: an IDed div <turbo-frame id='loader'> <div class="loader"> <div class="inner one"></div> <div ...
Jerome's user avatar
  • 6,355
0 votes
1 answer
61 views

All is working fine with Active Storage to add an image to one of my records. However, when I create a variant, it appears at the root of my S3 bucket, along with the file blob - e.g. ...
DaveR's user avatar
  • 2,503
0 votes
2 answers
65 views

In a rails 8 application I have two models: Recipe and Ingredient In the "show" action for recipe I display all the child ingredients, one per row. Each ingredient has edit and delete links, ...
kranz's user avatar
  • 621
0 votes
1 answer
73 views

Sidekiq cron job runs multiple times only on the 15th of each month (same schedule works fine on the 1st) My config/sidekiq.yml, I am using the built-in Sidekiq scheduler. :concurrency: 5 :queues: - ...
Zia Ur Rehman's user avatar
1 vote
2 answers
574 views

I'm running a Rails 8 app with a Option model that configures active storage like so: has_one_attached :picture do |attachable| attachable.variant :small, resize_to_limit: [75, 75] end config/...
croceldon's user avatar
  • 4,637
0 votes
1 answer
115 views

In a Rails app, I have the following three models. class Task < ApplicationRecord has_many :project_items has_many :projects, through: :project_items end class Project < ApplicationRecord ...
Sig's user avatar
  • 6,150
0 votes
1 answer
131 views

I can't seem to find a straight answer on this and AI is even leading me a stray. This is the closest post on this: Overriding Scaffold Controller in Rails 7.1 In my app I have the standard *.erb.tt ...
Dan Tappin's user avatar
  • 3,044
0 votes
0 answers
43 views

I am using the Ransack gem. I am using an Entity Attribute Value design in my database, specifically: I have a model called Subreport, which has_many Myvalues, with a column called myvalue. I have ...
randouser's user avatar
  • 109
0 votes
1 answer
45 views

I have a Rails app with a search form where search queries are submitted via Stimulus Reflex as the user types. I'm using a Page Morph and the results are populated into a div with data-reflex-root='#...
Sam's user avatar
  • 6,710
1 vote
1 answer
73 views

In Rails Controller tests of an invalid route, this used to work before Rails-7.1 (in Minitest): assert_raises(ActionController::RoutingError){ get "/non_existent" } In Rails-7.1 (or later),...
Masa Sakano's user avatar
  • 2,309
1 vote
1 answer
79 views

I have added friendly_id to a rails project and despite everything working as expected, one test is broken and I cannot figure out why: The model in question is called species, so with slugs generated ...
RedBassett's user avatar
  • 3,597

1
2 3 4 5
6764