When pre/eager loading an association, is there any way to get the associated data from a cache?
3
Rails
```
class Category < ActiveRecord::Base
# columns: name
has_many :books
end
class Book < ActiveRecord::Base
# columns: title, category_id
belongs_to :category
end
```
Given the abov...
xiwog82932 replied
Eigenclasses Discussion
10
General
Why does this video say it is private - I have seen it on my iPhone, but its so small, I wanted to see it on a big screen too
Also - I would enjoy a video on Ruby's Hash caching and Rails Lowlevel ...
Robin Madsen replied
Thread Safety with Mutexes in Ruby Discussion
6
General
In a Rails application that does standard CRUD for the most part, what would be a good use case for something like this? In the ferrum_pdf example you gave, it looks like you want to ensure there's...
evelynnotting replied
Deploying Rails 8 with Hatchbox Discussion
4
General
Awesome video Collin, and thanks for the shoutout! ππ»ππΌπ
Dale Holmes replied
Hash Fetch with Default Value Discussion
5
General
Guarantee you I've made this mistake many times over the years. π
Enim Korche replied
Single Table Inheritance (STI) with ActiveRecord in Rails Discussion
8
General
Thanks Chris, It's funny that we just stopped using this design pattern at Gitlab
https://docs.gitlab.com/ee/development/database/single_table_inheritance.html
Dale Holmes replied
LearnHotwire Course - stuck with Could not find table 'solid_queue_processes'
3
Rails
Hi all,
I bought the Learn Hotwire course and stuck at the Rails Application Introduction (3rd video).
When I ran "rails s" at 1.29 minute of the video, I got this error
'ActiveRecord::Connectio...
How to use the Ruby 2.6 Just-in-Time (JIT) Compiler Discussion
6
General
Nice!
Eddie Collins replied
Morse Code with Ruby - Part 1 Discussion
1
General
`.. / .-.. --- ...- . / --. --- .-. .- .. .-.. ...`
Cohn Elburn replied
Inbound SMS in Rails with Twilio Discussion
10
General
Thanks Chris. Ended up using this to programatically send a text message after a user completes an order, and allow that user to ask questions, creating a conversation, where we can respond from th...
Sikuoshi replied
Pro
5
General
Hi Chris.. I would like to purchase the pro series for 3 months..is this possible?
Chris Oliver replied
Solved
How do i display comments count of next page?
7
Ruby
I have a post and post has many comments, and i have made a load more button to load more comments with ajax.
I would like to display on the button how many comments next page has.
I use will_paginate
herrylauu replied
Retrieving Link Metadata with Background Jobs Discussion
5
General
Posting here in case anyone else ran into the issue where they tried to run a test, but got the error of having pending database migrations (also after running db:migrate).
For me what helped is r...
Noullooduady1995 replied
Looking for indie hackers + open-source builders to spotlight in our Ruby community
2
General
Our email-list audience for rubyconfth.com grew to 2000 subs this year π
To celebrate, Iβm putting together content that highlights indie hackers, community builders, and open-source creators and ...
fnf unkin replied
Your First Ruby Gem Discussion
7
General
Thanks Collin
I've authored a few gems already, but this was a really useful look at the "bare-bones" approach rather than use the "bundle gem your-name-here # and fill in the blanks" approach.
...
development env: is the asset pipeline expected to compile all assets or just those in demand?
2
Rails
I'm trying to understand if, in development, the asset pipeline is supposed to compile ALL assets found in manifest.js or just the ones that are requested.
I've been doing some testing and have fo...
How to limit comment nesting with Hotwire and Turbo?
7
Rails
I asked this question in the discussion on the tutorial itself, but there doesnβt seem to be any activity there. I went through the nested comments series, and the last three videos focused on real...
suri1205 replied
Solved
Morse Code with Ruby - Part 2 Discussion
0
General
In this lesson, we will continue the previous project and add the Morse code sound feature.
Lakedra Cole posted
Defer Job Enqueues After Transaction Commit in Rails 7.2 Discussion
1
General
Raise your hand if you're guilty of making this mistake in the past. ππ¬
Recommended UI component sets?
1
Rails
Our Rails codebase has been going strong for over 10 years now, but we're looking to upgrade the UI of our admin pages. These are all served as HTML snippets as always advocated by the Rails team (...
James Smith replied