
Rack for Ruby: Socket Hijacking
In the first part of this series, we set up a basic Rack app, learned how to process a request and...
Browse the latest writing surfaced through DevArt.

In the first part of this series, we set up a basic Rack app, learned how to process a request and...

Rack is the foundation for every popular Ruby web framework in existence. It standardizes an...

In part one of this series, we used Hotwire's Stimulus and Turbo Frames to present modals in...

Modals are widely used on the web, but they are rarely built with accessibility in mind. When a modal...

I'm generally a rather pedantic person and this is supercharged when it comes to managing the git...

This post was extracted and adapted from The Rails and Hotwire Codex. It also assumes some...

This post was extracted and adapted from The Rails and Hotwire Codex. Turbo Streams are a great...

This post was extracted and adapted from The Rails and Hotwire Codex. Concerns are a great way to...

This post was extracted and adapted from The Rails and Hotwire Codex. Rails system tests simulate a...

This post was extracted and adapted from The Rails and Hotwire Codex. When something goes wrong in...

This post was extracted and adapted from The Rails and Hotwire Codex. Rails 7 includes the official...

This post was extracted and adapted from The Rails and Hotwire Codex. In Rails, a conventional...

Almost every web app needs to send email. In some cases, it might be desireable to send emails using...

The default HTML file field is rather boring. It's quite painful to style and not really flexible...

Spy pixels, click tracking and other invasive data hoarding methods are par for the course in most...

Render.com doesn't yet have a managed Redis offering, but we can still deploy a persistent Redis...

Render.com is a new Platform-as-a-service offering that's a great alternative to Heroku. Rather than...

Kredis is a library that provides an abstraction of higher level data structures for Redis. It's...

Serialising a Ruby object to YAML is dead simple. Ruby's standard library has a yaml module built in...

Hamburger icons are pretty ubiquitous these days but I sometimes find them to be a symptom of lazy...

If you're familiar with Stimulus at all, the below bog standard controller should look very familiar....

Ruby has got to be one of the most malleable programming languages out there, which is why I like it...

<details> and <summary> tags are among of the most useful tags that HTML gives us. I'm...

Exporting to PDF from HTML can be a bit of a can of worms, especially with CSS not quite working the...

Monkey patching is one of Ruby's most powerful features. It allows programmers to add methods to core...

Ruby modules are a great way to define mixins. This construct offers a way to share logic using compo...

This article was originally posted on my blog. Sometimes an array of data needs to be submitted in a...

This blog post was originally published on my blog. I've also given a talk based on this post. Check...

This post was originally published on my blog. There are a lot of good reasons to roll your own...

This post was originally published on my blog. Toast notifications are a great way to give the user...
Advertisement