
How do I prevent ActiveRecord::PreparedStatementCacheExpired errors during deploys?
1
General
I'm using Hatchbox to deploy my Rails 7 application.
However, occasionally during deployment, I encounter the ActiveRecord::PreparedStatementCacheExpired error.
How can I avoid this issue to ensure...

Rails for Beginners Part 27: Twitter Accounts Page Discussion
17
General
This episode has been updated for Omniauth 2.0. 👍

Rails 7.1 Authentication From Scratch Discussion
18
General
Authentication got a TON of great improvements in Rails 7.1 with `authenticate_by`, `generates_token_for`, `normalizes`, etc. Super duper excited for these things and they should clean up a lot of ...

How to use Fixtures to create sample test data Discussion
1
General
Chris, thanks for all the great videos. These are super informative.
I have a question about fixtures and TDD in general.
Should I be creating a fixture for every potential variation in my model?...

Email Unsubscribe Links with ActionMailer in Rails Discussion
8
General
Hey Chris, is there any major difference between the newish Active record signed IDs in Rails 6.1 vs the Global ID signed IDs? A quick glance leads me to think the only real difference is that AR s...
Soren replied

How do I post comment with ajax in rails 4.2 ? Can I please have a detailed example?
4
General
How do I post comment with ajax in rails 4.2 ? Can I please have a detailed example?

Authenticate By & Password Challenge Methods In Rails 7.1 Discussion
1
General
Great episode Collin! The `authenticate_by` method really is a bug piece of making _secure_ authentication from scratch in Rails. These are nuances that are important (and already done in Devise), ...

How do I display several posts in related "weeks"
17
General
I would like to structure my blog so that I can assign posts I have created with Trix and Shrine to weeks.
I want to have 12 teaserboxes on my index page which can then be clicked and if I click o...

Autocomplete a form field
2
General
Hi,
i have the following models:
users, markets, assignments, products, sales,
a user gets an assignment, and then he should enter his sales for the assignment.
i have a sales form with the foll...

Extracting Reusable Base Classes In Ruby Discussion
3
General
The cat is still playing in the background 😂

Testing HTTP Requests with Webmock Discussion
3
General
Great episode! Instead of testing private methods directly, I suggest to define a `FakeApiClient` class that extends `ApplicationClient` with some dummy methods. This allows testing public methods....

HTML Learning Path - Image Element Discussion
1
General
In developer tools, Due to instructor video section, css and box model section are totally hidden.
inonomity replied

Changing Between Contexts In IRB Discussion
0
General

Loops & Blocks in Ruby Discussion
5
General
Hey Collin! Can you give us some examples where you might want to reach for a Proc or a stabby lambda instead of a regular method / function?
Aleksandr Gerasimov replied

Refactoring with Enumerable partition Discussion
0
General

Practical Decorators & Extracting Concepts Discussion
1
General
this is brillant
Matias H. Leidemer replied

Limiting & Clamping Values in Ruby Discussion
0
General
Yeah! Minimal if statements = Maximum efficiency.
Thomas Blevins posted

Custom Turbo Confirm Modals with Hotwire in Rails Discussion
8
General
Thanks for this
Adrian Marin replied

ActiveRecord Aggregations with composed_of Discussion
1
General
I don't see this feature used often in Rails apps, but it's super powerful for things like this. An easy way of creating Ruby objects like this allows you to really organize functionality instead o...
Marc Köhlbrugge replied