Tutorials
How to use tomselect to create and edit a "belongs_to :many relation" with Ruby on Rails - DEV Community
Imagine that you have a has_many xxx :through relation where you need to select several records out of thousands. Selection should be using an html select tag which would prove problematic if you had to select say 5 records out of 50.000 or moreWe...
No Refresh Sorting Dropdowns with Turbo and Stimulus | Ruby on Rails 7 - YouTube
Creating dropdowns for sorting with no refreshing is pretty easy with Turbo and StimulusCheckout my course(s) at: https://learn.deanin.comSource: https://github.com/Deanout/turbo_drop...Join this channel to help support these videos: / @deanin ...
Demystifying Active Record Associations - DEV Community
As a programmer, understanding how to work with databases is crucial for building robust web applications. One fundamental concept in database management is Active Record associations. In this beginner's guide, we'll explore the world of Active Re...
Let's make a blog with Bridgetown | Hanami Mastery
Today I'm going to show you the Bridgetown, a progressive-site generator written in Ruby. Even though I'm not using it just yet, I'm going to be a heavy user relatively soon and therefore I wanted to do some digging into this topic for you.It's wr...
Rails 7.1 adds ActiveRecord::Base::normalizes - BigBinary Blog
Rails 7.1 has introduced a new method in Active Record that can be used to declare normalizations for attribute values. This can be especially useful for sanitizing user input, ensuring consistent formatting, or cleaning up data from external sour...
Five Easy to Miss Performance Fixes for Rails Apps
Improving the performance of a Rails application can be a challenging and time-consuming task. However, there are some config tweaks that are often overlooked but can make a significant difference in response times. In this tutorial, I will focus ...