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.
Heredoc tokens as method parameter
rubycademy.com/heredoc-tokens-as-method-arguments
Don't blindly apply software patterns
I share my comments to the typical sagas & process managers examples and why blindly following software design patterns is not the best idea. Patterns are not the silver bullet, do not apply them without considering your domain and real intentions of the users. What’s the solution? Read more here:
Django vs Ruby on Rails Comparison: Web Frameworks Performance and Popularity
A perfect and reliable Django vs Ruby on Rails comparison for two popular web development frameworks for your next application. Read our comprehensive guidelines for Django vs Rails. [more inside]
Simple Code
To make meaningful progress, you have to get things done. To increase the rate at which things get done, you have to make doing easier. [more inside]
Beautiful, fast server-rendered apps with Rails and StimulusJS
This post shows how to use StimulusJS, RailsUJS and server-rendered HTML with built in transitions and DOM manipulation:
A simple gem for dealing with side effects
This gem makes it easy to create commands that keep track of side effects. If an error happens then each command can be undone again.
ExceptionNotification v4.4.1 is out 🚀
v4.4.1 has just been released! It includes some enhancements to ignore exceptions, and more data for Mattermost notifier.
Rails architecture tips from route helpers
A subtle feature of named route helpers gave me a new appreciation for the attention to detail that the authors of the Rails framework put into making it a pleasant development experience: Rails architecture tips from route helpers
9 tips to improve RSpec maintainability
Use the right tool at the right place for the right purpose
Installing SimpleCov for test code coverage with RailsBytes
Rails app templates are an awesome way to make interactive install scripts. In this screencast, we’ll show you how to write a RailsByte app template that installs simplecov for both minitest and rspec. Watch the SimpleCov & RailsBytes screencast
Postgres Indexes for ActiveRecord Join Tables in Rails Apps
Join tables are a common citizen in Ruby on Rails apps. Their use case is to provide many to many relation between database models. Adding correct Postgres indexes on join tables is not obvious. I’ve noticed that some tutorials, Stack Overflow posts, and even Rails itself provide incorrect advice on how to do it. In this tutorial, we’ll look into how compound Postgresql indexes work and how to correctly use them with join tables. [more inside]
Ruby on Rails Development: Obstacles, Opportunities, and RubyGems
Ruby on Rails development provides several opportunities in 2020. Here’s how Ruby on Rails web development can help you overcome obstacles. There’s also a list of some of the best RubyGems.
Last day to take the Ruby on Rails Community survey!
Take 10 minutes to share your experience using Ruby on Rails in the 2020 Ruby on Rails Community Survey. [more inside]
GitHub-style Hovercards with Stimulus and HTML-over-the-wire
Turbolinks, Stimulus, and Server Rendered HTML is a compelling alternative to modern JavaScript single page apps. Let’s build a hovercard to see how you can kick it old school with a more boring approach.
Graceful Request Retries in Ruby Applications
Failure Management, Fallbacks, Exponential backoff, Tools and Patterns [more inside]
Rails/Docker/Kubernetes-Helm/Github CI OSS boilerplate
A demo “classic” stack application (Rails, Sidekiq, Puma, Redis, PostgreSQL, Action Cable, Webpacker, Stimulus) deployable to Digital Ocean Kubernetes cluster in minutes with Github Actions CI. Boilerplate is based on the work of Le Wagon and Evil Martians [more inside]
Use Github Actions to secure Rails PRs
Using a pronto plugin for the popular brakeman gem, you can setup a Github Action to check for security issues on your PR within minutes. [more inside]
Truemail 🚀 configurable framework agnostic plain Ruby 📨 email validator
Truemail 1.8.0 has been released! 🚀🚀🚀 Added separated audit features for verifier host. Be sure that email address valid and exists.
Devise slack notifications 🔔
Devise slack notifications for register and confirmation actions made easy! [more inside]
How to use React components in Rails 6
Just published a new piece on building hybrid Reat/Rails apps. Hope you like it [more inside]