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.
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. Read more
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. Read more
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 Read more
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 Read more
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. Read more
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! Read more
How to use React components in Rails 6
Just published a new piece on building hybrid Reat/Rails apps. Hope you like it Read more
Huge Theme and Workflow Advances in Bridgetown 0.15 “Overlook”
Whew, a lot has happened since the last release of Bridgetown. The community has been growing on Twitter and in Discord, we’ve gotten new sponsors on GitHub, and a ton of work to move the ecosystem forward has been going on behind the scenes. It’s time to unveil some of those initiatives today with the release of Bridgetown 0.15 “Overlook”!
Web Scraping with Ruby
A pretty thorough overview on how to do web scraping with Ruby. The post covers working with HTTParty, Nokogiri and the Kimurai web scraping framework.
Top Web Development Frameworks in 2020
The top web app development frameworks enable building robust web applications. Here are the top web app development frameworks for succeeding with your web applications in 2020.
Embracing Perspectives with the Rails Router
A simple Rails routing convention that could have a huge impact on how you organize and discover code in your applications. Read more