Posts (Page 4)

Storing a String in ActiveStorage

Rails ActiveStorage is a great way of saving files, but you can also store blobs of text.

Improving RSpec's Profiling by compiling assets

Compiling my test assets before running specs saved a few seconds.

Using Signed Global ID in Rails

Lookup objects from a string of text, way better then passing ID references around.

Patterns to avoid when using JSON columns in Rails

Rails supporting JSON field type is a great, but can screw you right over.

Rails 6 Sidekiq Queues

Rails 6 has new queues for ActiveStorage & ActionMailbox.

Testing Rails Action Mailbox with RSpec

Rails 6 ships with Action Mailbox, here is how I added tests for RSpec

Easier DateTime Localisation with Rails

Rails ships with a bunch ISO date formats (and a few localised ones), here is how to use them

Naming colours in SCSS

Naming is tricky, here is how I do it.

How to limit the size of Rails Logs

Rails log files growing to massive sizes? Limit them!

Configuring CORS on S3 for ActiveStorage

The AWS S3 CORS configuration to allow Direct Upload for ActiveStorage.