Rails Tricks Newsletter
Subscribe
RSS
Archive
Rails static pages - Rails Tricks Issue 15
August 15, 2023
Hi there, This week I want to show you how I add static pages in a Rails application, since I just did this recently. I like to put all of them into the same...
Modifying Action Text markup - Rails Tricks Issue 14
July 11, 2023
Hi there, I am working on a newsletter tool(Pombo) and this week, I want to share how I solved a problem I came across last week while working on it. The...
Automate some of your security - Rails Tricks Issue 13
July 4, 2023
Hi there,This week, I will show you how you can automate some of the security necessities of a Rails application. If you follow this guide, you will be safe...
Customizing the Rails console
June 27, 2023
Hi there, I started to deploy my latest pet project with MRSK and I realized that I miss the customizations from my Rails console on the server. And I...
Offline Ruby and Rails documentation
June 20, 2023
The vacation season is starting, and it can be helpful to have access without the internet to the documentation of Ruby, Rails, and the gems you use. If you...
Active Record Transactions - Rails Tricks Issue 10
June 13, 2023
This week we will look into database transactions. First of all, let me try to explain what they are. A database transaction is a unit of work that...
Modify database schema with migrations - Rails Tricks Issue 9
May 30, 2023
Hi, this week, I will show you a few useful methods to modify your database schema with Active Record migrations. You probably found yourself in a situation...
Infer name with link_to - Rails Tricks Issue 8
May 23, 2023
Hi, this week I want to tell you about an improvement coming in Rails 7.1. When you are using the link_to helper, it can infer the URL from the object you...
Shared examples with Minitest - Rails Tricks Issue 7
May 16, 2023
Hi, this week I will show how you can achieve a similar behavior to Rspec’s shared examples with Minitest. We will dry the minitest tests by extracting the...
How to use a specific version of Rails
May 9, 2023
Hi, this week I will cover how you can use a specific version of Rails should you need it. If you call rails new, you will use the version of Rails you have...
Active Record where tricks - Rails Tricks Issue 5
May 2, 2023
Hey, this week, I am bringing you Active Record tricks to find records with missing associations or with associated records only, and to negate your...
Active Support helpers configuration - Rails Tricks Issue 4
April 25, 2023
Hi, this week I am bringing you a trick to configure Active Support helpers! Active Support is a collection of utility classes and extensions to Ruby core...
Array Tricks - Rails Tricks Issue 3
April 18, 2023
Hi, this is your weekly Rails Trick! This time, I am bringing a few Active Support extensions on Array. The first one is the to_sentence conversion method....
Rails Tricks Issue 2: Console Tricks
April 11, 2023
Hi, this is Greg with the second issue of Rails Tricks! Thanks to everyone for subscribing! This week, I want to share a few Rails console tricks I use...
Rails Tricks Issue 1
April 4, 2023
Hi, this is Greg, bringing you the first edition of the Rails Tricks newsletter. Thank you for subscribing! I hope you will learn a few things over time. Let...