The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Rails 7 Hotwire : a tutorial
Hotwire is the new functionality of Rails that gained momentum lastly. This tutorial is a practical introduction to each feature. [more inside]
[Screencast] Remote Development
Having a fast and expensive computer to do daily development is a luxury. Sometimes, we may be in a position where we are just getting started with programming and the budget is very small. In this episode we look at a very moderately priced Chromebook and explore how we can make it into a viable development machine. https://www.driftingruby.com/episodes/remote-development
How to Introduce Testing in Teams and Companies
Testing is a fundamental part of a quality-driven culture, a prerequisite for avoiding the two biggest risks for a company developing products: the risk of doing the wrong thing, and the risk of doing it too late. [more inside]
Being a backend developer
I wrote a small post about how I feel being a backend developer. Bit off topic but posting it here because I am a RubyOnRails developer. [more inside]
Async Ruby - Ruby Rogues podcast
This podcast episode covers the topic of “async ruby” from a new angle. We talked about a lot of the things that weren’t mentioned so far: [more inside]
[book] I Love Ruby updated
Updated Structs & OpenStruct, added sections Rubocop and running Ruby in Jupyter in my book I Love Ruby. Get it here.
A Wordle decoder that guesses your guesses.
It’s all in Ruby and it’s open source
Building a restricted slug validator
Here’s how to build a custom slug paths validator.
Glimmer Klondike Solitaire 1.1.0
For those who like the Klondike Solitaire card game (aka Patience), Glimmer Klondike Solitaire 1.1.0 has been released with a couple of fixes. [more inside]
CodeTips#1: Exploring Hashes in Ruby
In this article we will be exploring 3 (+ one bonus) methods to retrieve values from hashes in Ruby and a few of it’s uses. [more inside]
How to rename a Rails app
Here are the instructions to rename an existing Rails app. Nothing really risky, it should be a set-and-forget thing. [more inside]
Glimmer DSL for SWT Video Tutorial 5 - Hello, File Dialog!
The Glimmer DSL for SWT (JRuby Desktop Development GUI Framework) Video Tutorial 5 is out! It walks software engineers through Hello, File Dialog! [more inside]
How to build modals with Hotwire (Turbo Frames + StimulusJS)
Hotwire allows us to add Single Page App (Turbo Frames), or AJAX (Turbo Streams) functionality without writing any custom Javascript! (It has all been pre-written for us). [more inside]
Rails 7 application inside Docker on macOS: Part two - database and Mutagen
How to create Rails 7 app with all dependencies hidden inside a Docker container link
Don't waste your time on assets compilation on Heroku
At some point, you may want or be forced to use the CDN to serve assets of your Rails app. When your app is globally available, you may want to serve the assets from strategically located servers around the world to provide the best possible experience for the end user. Serving static assets via Puma is not the best idea — it’ll be slow. The only viable option on Heroku is to use CDN. I will show you how to do it smart, save time and have faster deployments [more inside]
Ruby on Rails Forms With Hotwire (video)
I wanted to find out if Hotwire can be as good, or better than something like React JS. But… I wasn’t sure if Hotwire is up to it.
The In-depth Guide to ActiveRecord load_async in Rails 7
The In-depth Guide to ActiveRecord load_async in Rails 7 Rails 7 introduces ActiveRecord load_async API that runs SQL queries asynchronously in the background thread. This seemingly simple change of just adding a single new method that takes no arguments has profound implications for database layer interactions. In this tutorial, we’ll deep dive into the intricacies of this new API. We’ll discuss lazy-loaded queries, Ruby threading model, blocking IO, database pool vs. max connections limit, and performance impact of concurrent database clients. I’ll also try to suggest scenarios where introducing async SQL queries could have the most benefit without sacrificing the stability of your Rails app. [more inside]
Your app is not your business!
Separating the business domain apart from the application layer can help a lot in untangling your code and simplifying architecture. [more inside]
Glimmer Wordle 1.1.0
Glimmer Wordle 1.1.0, which is written in Glimmer DSL for SWT (JRuby Desktop Development GUI Framework), has been released with a number of improvements. [more inside]
S3 direct file upload using presigned URLs from React and Rails
Recently, we were working on a project where the backend was a Rails API and the front-end application was written in React. We had to implement a feature for a file upload. We worked out a solution to upload files directly to S3 using presigned URLs.