Rails String#upcase_first VS capitalize and titleize
What comes in your mind when you have a task to make the first letter of a string uppercase? You might think about using capitalize method, or titleize method.
What comes in your mind when you have a task to make the first letter of a string uppercase? You might think about using capitalize method, or titleize method.
Among other great features of ActiveRecord in Rails, I find accepts_nested_attributes_for is one of the most useful. It was introduced in Rails 2.3 and allows you to save attributes on associated records through the parent.
Eight years ago, Rails 5 made the belongs_to association required by default. This solved a lot of problems with orphaned records in the database. But sometimes, you need to have an optional association, which may lead to situations that you don’t expect.
A week ago I finished update of this website and it was my first front-end related task in a while. I’ve learned a lot of new things that I want to share with you. The may sound obvious for some of you, but I still think they deserve to be mentioned. One of them is lazy-loading offscreen iframes.
In this episode, I explore the Maybe finance code base. The original version of Maybe was written in React and then open-sourced. In February 2024, Josh Pigford started to rewrite it in Rails. What is done within two months, what can be improved, what tools and libraries are used – all these in this video.