Posts tagged "rails"
-
Model Replicas
A more targeted approach to connecting to readonly replica database instances
-
Mock Record
Testing libs against a totally fake record
-
Cron tasks as Interactors
How OOP benefits the scripts in your application
-
Taming Rails Namespaces
What to do when your application outgrows your framework
-
Rails helpers as a class
How to use Rails' helper methods usable outside of ActionView
-
SOLID in Rails: An Open/Closed principle example
Yes, the Open/Closed principle *can* be applied in a Rails app! Here's an example.
-
Hacking FactoryBot to build a factory UI (2 of 2)
Part 2: Hacking around uniqueness validations
-
Hacking FactoryBot to build a factory UI (1 of 2)
Part 1: The main guts of the FactoryBurgers gem
-
Publishing a Ruby Gem with a React-based front end
Using Rack middleware in a Gem to serve assets from a React build
-
Using Middleware to serve views in Rails
Exploring the basics of Rack middleware in order to respond with static HTML
-
RenderReturn: a controller Exception
Easily end a controller action without risking the double render error
-
Pitching Rails and ActiveRecord
Making the case for Rails to a non-Rails developer
-
Rails is Ridiculous
A rant about some decisions in Rails
-
subjoins
Using Arel to join to a subtype of an STI model
-
bulk_insert
MySQL-dependent efficient bulk create for ActiveRecord models
-
secret
Modify a core class ... secretly
-
monomorphic
Fully featured joining to subtypes of polymorphic associations
-
offline_lookup
An easy gem to avoid db queries for lookup tables
-
left_join
Perform LEFT OUTER JOIN using Arel in Rail 4
-
secure404
Using middleware to tighten staging environment security