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.
ActiveRecord Adapter for Amazon Aurora Serverless
Simple ActiveRecord Mysql2 adapter extensions to allow Rails to use AWS Aurora Serverless via the Aws::RDSDataService::Client interface. Perfect if you are using Lamby to deploy your Rails applications to AWS Lambda.
Ruby Conferences & Camps in 2020 - What's Upcoming? Anything Missing? Updates Welcome
Hello, I’ve updated the Ruby Conferences & Camps in 2020 - What’s Upcoming? page. Try the rubyconf command line tool (packaged up in the whatson gem) e.g. [more inside]
Kno: The simplest way to add passwordless authentication to your app
Use the Kno service for passwordless authentication that combines magic links and public key device auth. Kno handles sending emails so you don’t have too. Also it allows users to set up device based authentication so they don’t have to wait for any email, after the first. [more inside]
Working with Capistrano: Environment Variables and Remote Commands
The Working with Capistrano: Environment Variables and Remote Commands is a second article in the series “Working with Capistrano”. It explores how to write tasks that allow for configuration, define environment variables and execute commands on a remote server. You will learn details behind Capistrano’s design and in the process discover new Ruby tricks. Enjoy!
When dry-struct is good
An article of use cases of dry-struct/dry-schema in my experience:
New release Truemail 🚀 configurable framework agnostic plain Ruby 📨 email validator
Implemented internationalized emails (EAI) supporting. Be sure that email address valid and exists. Happy New Year!!!
Implement conditional CSS classes in your Ruby on Rails application
Start using conditional CSS classes from a string, hash or array by implementing Ruby on Rails’ upcoming ‘class_names’ helper today!
Ruby 2.7 comprehensive changelog
The Ruby Changes (open, structured, explained and cross-linked changelogs for Ruby) updated to include all Ruby 2.7 changes with all the “why”s, “how”s and links to docs and discussions!
How to execute Arel queries
Plenty of resources explain why using Arel is a good option, but it is hard to find an explicit guide on how to use the queries you can build with Arel. This article is one of them
Primary or default flag to the Rails models
The simplest way to handle the primary or default flag to your Rails models.
Ruby 2.7 experimental pattern matching in few examples
I got so excited about today released Ruby 2.7.0 experimental pattern matching feature I wrote article describing it in few examples.
I created the same app with Rails and Javascript
A few days ago, I came into a post on Medium “I created the exact same app in React and Svelte. Here are the differences”, this post talks about side by side code comparison on writing a simple To Do application with both Javascript Framework. [more inside]
How to add FriendlyId to your Rails 6 application
Make your Ruby on Rails URLs SEO friendly with FriendlyId and a reusable concern.
Debug Rails issues effectively with tapping_device
Debugging large Ruby applications or libraries could be a painful process, but it doesn’t have to be this way. A few months ago, I wrote a gem called tapping_device to make debugging Ruby programs “a lot” easier. [more inside]
Better File Uploads with Shrine: Eager Processing
Shrine’s “eager processing” feature allows us to generate and store a set of processed files (e.g. image thumbnails) derived from the attached file. In this article we’ll show how this feature is designed, how does it stand out from alternatives (Paperclip, CarrierWave), and some neat use cases it enables.
Importing images with Webpacker
An unofficial guide demonstrating how to reference Webpacker images from your JavaScript, CSS, and Rails views.
New strings-numeral gem release
The strings-numeral helps you express any number as a word numeral like cardinal, ordinal, roman and monetary. Enjoy!