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.
How to use Stimulus JS 2.0's new Values and CSS Classes APIs
The long awaited changes for Stimulus JS’s Values and CSS Classees APIs were released last week. These allow you to specify options (and types!) for your Stimulus controllers making them way cleaner to implement. Watch the screencast on How to use Stimulus JS 2.0’s new Values and CSS Classes APIs
[Screencast] The Stimulus 2.0 Tutorial
Stimulus 2.0 has been released and with it comes new features, changes and bug fixes. In this episode, we look at adding Stimulus in our application, exploring the new features, and looking at what has changed. https://www.driftingruby.com/episodes/the-stimulus-2-0-tutorial
Day 07 - letter_opener @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, let’s thank Matt Swanson for the seventh write-up in the Ruby Advent Calendar 2020 - Day 7 - letter_opener Gem - Let Your Browser (Automagically) Open-Up Your Email Letters for Previewing. Stop Sending Emails to Yourself for Testing. Cheers. Prost.
Code Diary: How and Why to Keep One
As a developer with 10+ years of experience, I get value from keeping a code diary, a place to think aloud about design decisions, analyze impressive scraps of code found in the wild, or extract learnings from past mistakes. Here’s a video about the diarying process and the benefits:
Day 06 - pay @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, lets thank Chris Oliver for the sixth write-up in the Ruby Advent Calendar 2020 - Day 6- pay Gem - Accept (One-Time) Payments or Subscriptions with Strong Customer Authentication (SCA) - Billing Engine on Top of Stripe, Braintree or Paddle. Cheers. Prost.
Using Docker on Apple silicon with a remote Docker engine
Not strictly Ruby, but many Ruby developers use Docker. I wrote a post on using a remote Docker engine on the new Apple silicon Macs while we wait for official support. The post also covers a workaround for bind mounts which otherwise don’t work with a remote Docker engine. I have been working with this setup for a couple of days now and I barely notice the difference compared to a normal Docker setup. Hope it’s useful to others too. [more inside]
Day 05 - factory_bot @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, lets thank Jason Swett for the fifth write-up in the Ruby Advent Calendar 2020 - Day 5 - factory_bot Gem - “Hey, Make Me a User with an Email and Password” - Setup Factories That Make You Fake Objects with Fake Data for Testing. Cheers. Prost.
Rails & Next.js Project Skeleton (w/ Docker)
Running Rails with a separate frontend app doesn’t have to be complicated:
Day 04 - noticed @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, lets thank Chris Oliver for the fourth write-up in the Ruby Advent Calendar 2020 - “Day 4 - noticed Gem - Send Notifications Immediately or for Later Delivery (in the Background) via Email, Slack, Text Message, Real-Time ActionCable in the Navbar or Many More Channels”. Cheers. Prost. PS: This notification is (old-school) hand-delivered :-).
Ruby on the Frontend? Choose Your Weapon
We all know that Ruby is a great language to use for the backend of your web application, but did you know you can write Ruby code for the frontend as well?
Day 03 - blazer @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, lets thank Marc Köhlbrugge for the third write-up in the Ruby Advent Calendar 2020 - “Day 3 - blazer Gem - Explore Your Data with SQL. Easily Create Charts and Dashboards. Business Intelligence (BI) Made Simple”. Cheers. Prost.
Building a Multi-tenant Ruby on Rails App With Subdomains
Discover different approaches to multitenancy and build a simple app with multiple tenants where each tenant will have its subdomain. [more inside]
SudoRails v0.6.0 has been released 🚀 Sudo mode for your Rails controllers 🔒
Protect any Rails action with a customizable password confirmation. 🙇 Inspired by GitHub Sudo mode. [more inside]
Day 02 - elastic-enterprise-search @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, lets thank Fernando Briano for the second write-up in the Ruby Advent Calendar 2020 - “Day 2 - elastic-enterprise-search Gem - Workpalce Search, App Search, and Site Search All Together”. Cheers. Prost.
Day 01 - local-time @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, lets thank Matt Swanson for the first write-up in the Ruby Advent Calendar 2020 - “Day 1 - local_time Gem - Cache-Friendly and Timezone Aware Timestamp Formatting”. Cheers. Prost.
Truemail 2.2.0 has been released 🚀 configurable plain Ruby 📨 email validator
Added ability to use fail fast behaviour for SMTP validation layer. It helps to reduce total time of SMTP validation session up to 1 second. Be sure that email address valid and exists.
Stimulus Pearls: A collection of Stimulus.js tutorials
22 Tutorials, updated with the latest version of Ruby on Rails and Stimulus.js. You’ll also receive the source code from all the tutorials, so you can run each example and dig through the internals.
The distiction between default and bundled gems in Ruby
If you ever wondered, what are default and bundled gems in Ruby, now you know :).
Ruby on Rails vs. Django in 2020 and Beyond
Which should you choose for your new project? [more inside]
6 Things to Do When Inheriting Legacy Rails Apps
One of our engineers wrote a post about the steps to take when inheriting a legacy rails app and I wanted to share it here. Let me know what you think.
How To Create Custom Shopify App With Rails?
Creating an application for shopify using Ruby on Rails is very easy. Learn More about How To Create Custom Shopify App With Rails
httpx 0.10.0 - streaming requests, rate limiter, rbs, international domains
“httpx” is an advanced HTTP client library for ruby. It ships with HTTP/2 support, and handles concurrent requests seamlessly, while shipping with a powerful plugin system. v0.10.0 brings support for streaming requests, a rate limiter plugin for convenience, RBS type signatures, and support for international domains in URLs. [more inside]