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.
Understanding RBS, Ruby's new Type Annotation System
Ruby’s flexibility has always been both its greatest strength and its greatest weakness. You can write amazingly expressive programs. You can also slip and break them in amazingly expressive ways. RBS is a new type annotation system in Ruby 3 that seeks to keep ruby’s flexibility while protecting us from some of its dangers. In this article, Julio Sampaio walks us through RBS. He explains the impact it has on metaprogramming, and he shows us how we can use it to make our own apps more robust.
A First Look at AWS App Runner
AWS recently introduced App Runner, a service for running containerized applications. Is there room for yet another managed container offering? How does it compare with AWS Fargate and ECS? [more inside]
ShinyCMS 21.06 - The 'Happy Birthday, Fliss!' Edition
Today is my flatmate’s birthday! And it was either name this month’s release for that, or call it ‘the unemployed layabout release’ - I finished my previous job on Friday (after 5 years!), and haven’t quite sorted out the next job yet :-o Anyway, for ShinyCMS, this month was mostly about finishing up the View Components conversion in the admin area that I started last month - although route partials got a complete rewrite along the way. [more inside]
Embracing Ruby, the Best Language for Building Websites, in Bridgetown 0.21
Support for ViewComponent is finally here, along with numerous advances which fuel high-level design thinking. The powerful combination of Ruby and Bridgetown today enables tiny teams to compete favorably with much larger competitors.
Puma graceful restarts
How to configure Puma 5 application server for graceful restarts, and what is the difference between regular, hot, and phased restarts?
On the Job Hunt? Try this one thing to get experience as an early career Ruby dev
This is one thing I wish I had read when trying to get my first dev job! I spent far too long stuck on tutorial hell. [more inside]
Razorpay Integration in Ruby on Rails
Want to learn how to integrate Razorpay in your website using Ruby on Rails? Here’s how to do the Razorpay payment gateway integration.
Alba 1.3.0 comes with 20% performance improvement
Version 1.3.0 of Alba, a JSON serializer for Ruby, has been released with new features, bug fixes and performance improvements. An impressive thing is that one line change brought 20% speedup. Enjoy using Alba that’s faster than ever!
Automatic code review with Pronto and GitHub Actions
Using Ruby style and formatting tools on legacy application is tricky. You make a small change to an existing file, run the linter to check your work, and–dang. So many style pre-existing style violations! Such noisy ensuing git commits! Here’s how I integrate Pronto and GitHub Actions to check PRs for style and security issues.
command_kit 0.1.0.pre2 released (beta testers wanted)
command_kit 0.1.0.pre2 has been released. CommandKit is a new Ruby CLI toolkit for building correct and robust CLI commands as plain-old Ruby classes. Some advantages of CommandKit is declarative DSL syntax, modular design (every feature is an includable module), a variety of built-in features (ANSI colors, --help man-pages, sub-commands, less/more pager, XDG support, etc), and easy to test.
Rails 7 adds `Enumerable#sole` to return a sole item in the enumerable
In Rails 7, Enumerable#sole returns the sole item in the enumerable and raises an exception if no items or more than one item is found. [more inside]
Running Cron Jobs in Container Environments
Choose the best option to run your scheduled cron jobs in a container-based environment including Docker, Kubernetes, and Twelve-Factor Application implementations.
Top 12 Website Examples Built with Ruby on Rails
These 12 top websites built with Ruby on Rails and are the leaders in the industry. Check out the best examples that use the Ruby on Rails.
Using Postgres Row-Level Security in Ruby on Rails
Learn how to create and implement a row level security policy in Rails, allowing to limit the database rows a user can access. [more inside]
SpreeConf 2021 - free online event for Ruby on Rails and Spree Commerce enthusiasts
SpreeConf is all about sharing Ecommerce know-how. We’ve invited developers, founders, and industry experts behind some of the most successful businesses using Spree from around the world. [more inside]
Extralite: An extra-lightweight Ruby gem for working with SQLite3 databases
Extralite is a new Ruby gem for working with SQLite3 databases. For more information:
Understanding Ruby Method Lookup
Ruby lets you express yourself like few other languages, with a minimum of boilerplate. It’s fantastic until it isn’t. Until one day when you think you’re calling the foo method you wrote last week, but instead, you end up calling a foo method that came with some gem from 2008. In these situations, knowing about Ruby’s method lookup rules will save your bacon.
Ruby On Rails Web Development
This post describes Ruby On Rails, what types of applications it’s best suited for, and some useful examples of websites built on Ruby On Rails.
[Fix] Missing top level class documentation comment Rubocop
Disable or fix the warning “Missing top-level class documentation comment” in 3 different ways. [more inside]
How conditional GET requests & fresh_when work in Rails
I wrote a long(ish) Twitter thread on how conditional GET requests work in Rails, with a Rails source code walk-through. It also explains how cache keys are created and can be used to cache objects and Active Record relations in combination with Rails’ fresh_when.