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.
sandbox mode added in rails_db
https://github.com/igorkasyanchuk/rails_db a new feature added (sandbox mode).Only read-only operations are allowed with your DB
[Screencast] 10 Ruby on Rails Tips and Tricks
I don’t get around to doing these too often, but they are always a lot of fun. In this episode, we’ll look at ten different Ruby on Rails tips and tricks. https://www.driftingruby.com/episodes/10-tips-and-tricks
Move From Sprockets to Webpacker On Small to Large Rails Apps
Want to remove Sprockets from your Rails application? Is it even possible to do it on a large legacy app? Here’s a list of examples to help you depending on the size and complexity of your project: Move From Sprockets to Webpacker On Small to Large Rails Apps
Integrate Bulma with Hanami 2.0 applications!
I’ve published a new Hanami Mastery episode! [more inside]
New Gem capistrano-slacky released!
I have just released a new gem called capistrano-slacky . This is a Capistrano plugin to send deployment status to Slack via the Incoming Webhooks integration. [more inside]
Infinite Scrolling Content in Rails — Without Writing Any Javascript
Being able to add interactivity to your web application is great. Being able to do it without having to write Javascript is better. This article describes a technique you can use in Rails to build an infinite scroll pagination feature into your app. [more inside]
Using Redis Hashes for Caching in Ruby on Rails
An article sharing lessons we at Mrsool learned using Redis with Rails in production at scale, and sharing a Ruby gem we created to help make it easier for others.
Pennyworth 11.0.0 - Fuzzy find the repo/gem you need
If you’ve ever wanted quick access to Ruby system errors, HTTP statuses, GitHub projects, Ruby Gems, etc. all within an Alfred script filter then you might like this entire rewrite of the Pennyworth gem which supports all these features and more. 🎉 Check out this quick screencast for usage or many workflows you can use with Pennyworth, like DRY RB for example. Enjoy!
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. https://www.honeybadger.io/blog/ruby-rbs-type-annotation/
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. https://www.botreetechnologies.com/blog/razorpay-integration-in-ruby-on-rails/
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
https://www.devgraph.com/2021/03/15/running-cron-jobs-in-container-environments/?utm_source=RubyFlow Choose the best option to run your scheduled cron jobs in a container-based environment including Docker, Kubernetes, and Twelve-Factor Application implementations.