Say I have the below ruby hash nested hash_or_array = [{ "book1" => "buyer1", "book2" => { "book21" => "buyer21", "book22" => ["buyer23", "b
I use Paper Trail gem to capture versions of my models and it works very nicely. But Paper Trail don't capture version on bulk insert. Example: User.bulk_import
I am learning Docker and have a little confusion that I would greatly appreciate some advice on. When creating a new rails application. Following the guidelines
I am trying to bundle install my application. I have the gem stackprof and i keep getting this error whenever i try to install this gem. I am using M1 with Ruby
I am doing the installation on m1 mac and I am stuck mysql issue. my rails server is working fine but when I run my spec then I got cannot load such file -- m
I was following this tutorial right here https://gist.github.com/stevecondylios/16a53b73f22621e3cde2e17096dbf5ca Which teaches you how to make a simple contact
Well, I'll try to be as clear as possible in my problem, and I hope to get answers with Ruby because I'm currently studying Ruby on Rails, but of course other s
In a Rails 7 app, I am trying to ask the user to confirm before destroying a resource. In my erb view, I have the following tag: <%= button_to 'Destroy', acc
How to configure a PSQL v11.4 user that is not the superuser and does not own the database. This user should have full access to create SQL objects and drop the
I have badges that are displayed on profile pages But there is this block of white space that fills in. I am not sure how to position the badges appropriately.
This block of code: def set_conversation @conversation = Conversation.find(params[:conversation_id]) .match.origin_target.
playing around with Rails 7 and import maps. Trying to import a folder with some custom JS. # config/importmap.rb pin_all_from "app/javascript/custom", under: "
when i upload the i got this error in rails application ActiveSupport::MessageVerifier::InvalidSignature (ActiveSupport::MessageVerifier::InvalidSignature): i
I’m using mongoid gem ’mongoid’, ’~> 7.2.4’ (mongoDB 3.6) with rails (5) and I have a database with customer collections and bi
I a rails app running on my local environment using postgresql. This morning I spun up a new one and after install the pg gem, etc. I am running into the follow
Trying out rails 7, with tailwind and postcss. I have a few stylesheets in assets/stylesheets, which I import through a file called imports.css in the same fold
I am new to ruby on rails hence when i am trying to create new project by following command: rails new abc I am getting following error rails aborted! Psych::Ba
For some unknown reason Rails 7 (development environment) doesn't pick up changes in application.js automatically when I hit F5 in the browser. The location app
I'm using rails in API mode, with Devise and Devise JWT (for the API), and ActiveAdmin. I had everything working but I've been building out the API controllers
Extremly odd error, asset precompilation works fine in dev mode, but as soon as i do production mode, i get error: root@53407ec15126:/app# RAILS_ENV=production