Articles tagged Ruby on Rails
## The big list of Ruby on Rails performance tweaks
On September 22, 2020; in Ruby on RailsSo you wrote an app and you think it's slow. What can you do? A lot.
## Async ActiveRecord Callbacks
On September 20, 2020; in Ruby on RailsNifty hack that's not terribly awful?
## Introducing Gearhead
On September 14, 2020; in Ruby on RailsTurn your database schema into a RESTful API in just three commands (including rails s
!)
## Using filters to easily create DSLs
On August 31, 2020; in Ruby on RailsTidy up your controllers and introduce descriptive one-liners by wrapping filters with clear method names.
## Organized code made easy with ActiveSupport::Dependencies::Loadable
On May 8, 2020; in Ruby on Rails, Code ArchitectureUse require_dependency
to make your code more organized.
## Querying and serializing one million records in Ruby on Rails
On May 1, 2020; in Ruby on Rails, PerformanceTips and tricks when querying your database and serializing objects in a performant and maintainable manner.
## Prefer `size` over `count`
On November 2, 2019; in Ruby on Railssize
doesn't hit the database if things are loaded?
.
## How Ruby on Rails ActiveRecord chaining works
On August 22, 2019; in Ruby on RailsReturning self
makes this clever API slick.
## Trivial Batch Actions in Ruby on Rails
On April 15, 2019; in Ruby on RailsWriting an elegant and DRY API to handle batch actions in Ruby on Rails.
## Purging ActiveStorage attachments with a familiar API
On March 19, 2019; in Ruby on RailsUse ActiveModel::Attributes
to easily create a familiar API for purging ActiveStorage
Attachments.
## Custom exception patterns in Ruby on Rails
On January 11, 2019; in Ruby on RailsCreating custom exceptions specific to your app's needs is a powerful way to convey intent. What do they look like and where should you put them?
## Custom headers for HTTP statuses in Ruby on Rails
On November 3, 2018; in Ruby on RailsAdding headers for specific HTTP statuses in Ruby on Rails easily with super
.
## Using Rails ActiveModel::Attributes and practice ActiveModel examples
On August 6, 2018; in Ruby on RailsUse ActiveModel::Attributes
in your models to get the schema-back attributes you love without the schema requirement.