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.
What's new in Ruby 3.0?
Ruby 3.0 is finally here! The big new features this time are support for static analysis and the new concurrency features. Here are some of the highlights of this release. [more inside]
Turbo Streaming really is magic!
Here is the second installment of my attempt to use HOTWire in a complicated, real world app. Today, I look at adding Turbo Streaming to the previous tutorial. It’s amazing how it integrates into the existing Rails stack, and adds so much interactivity with very little extra work. [more inside]
Kafka for Rubyists Mini-Course: Consuming and Performance
After the first part covering Kafka and Karafka fundamentals, it would be a time for the second part about consumers and some potential performance issues. [more inside]
Ruby 3.0 comprehensive changelog
The Ruby Changes (open, structured, explained and cross-linked changelogs for Ruby) updated to include all Ruby 3.0 changes with all the “why”s, “how”s and links to docs and discussions!
Day 25 - hexapdf @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, let’s thank Thomas Leitner for the twenty fifth write-up in the Ruby Advent Calendar 2020: Day 25 - hexapdf Gem - Read and Write PDF Documents. Start from Zero or Merge, Extract, Optimize and Much More. Cheers. Prost. Happy Holidays. Merry Christmas.
RubyNext 0.11.0: Ruby 3.0 support and shorthand kwarg syntax
This RubyNext release is dedicated to the upcoming release of Ruby 3.0. [more inside]
Day 24 - git_reflow @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, let’s thank Valentino Stoll for the twenty fourth write-up in the Ruby Advent Calendar 2020: Day 24 - git_reflow Gem - Automate Your Git Workflow for You and Your Team. Build Your Own Git (Command Line) Commands @ Ruby Advent Calendar 2020 / 25 Days of Ruby Gems. Cheers. Prost
Building HHNPWA #1: Setting up for Top Stories
Follow along as we build the HOTWire Hacker News Progressive Webapp, or HHNPWA. This will build on the lessons from the Hacker News Progressive Web App, and will leverage all the enhancements that come from Turbo. In the end, you can compare the two, and decide for yourself what works. https://onrails.blog/2020/12/23/building-hhnpwa-1-setting-up-for-top-stories/
Hotwire Tutorial
Hotwire is the newest magic which takes a different approach to building modern web applications without using much JavaScript. https://www.driftingruby.com/episodes/hotwire
Build a real-time Twitter clone with Hotwire & Rails
To see how Hotwire really compares, I’ve built a Twitter clone so you can see how it stacks up with other server-side reactive approaches. Watch the How to use Hotwire & Rails to build a Twitter clone screencast
Day 23 - json-next @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, the twenty third write-up in the Ruby Advent Calendar 2020: Day 23 - json-next Gem - Read Next Generation JSON Versions (HanSON, SON, JSONX/JSON11, Etc) with Comments, Unquoted Keys, Multi-Line Strings, Trailing Commas, Optional Commas, and More @ Ruby Advent Calendar 2020 / 25 Days of Ruby Gems. Cheers. Prost
The Beginner's Guide to Bundler and Gemfiles
Using a real-world example of bad documentation, we learn how Bundler and Gemfiles work by working through the errors.
Web Scraping with Ruby
I spend the last week writing this in-depth web scraping tutorial in Ruby: Web Scraping with Ruby [more inside]
Day 22 - active_record-events @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, let’s thank Bartosz Pieńkowski for the twenty second write-up in the Ruby Advent Calendar 2020: Day 22 - active_record-events Gem - Complete? Record Your Own Timestamps in Active Record Models with has_event Macro, Automagically @ Ruby Advent Calendar 2020 / 25 Days of Ruby Gems. Cheers. Prost
How I Upgrade Ruby on Rails
Rails 6.1 looks to be a solid release. Though, despite all the new features and fixes a new Rails version brings, there is always one looming problem for developers - the upgrade. I wrote a blog post outlining the steps taken when I upgrade a Rails app. Hopefully others can find this helpful.
Easy Sitemaps
I’ve been doing some reading and learning about SEO of late. An easy thing to do is to create a sitemap and submit it to google’s search console. [more inside]
Versionaire 8.7.0 - Kernel Casting and Sequential Bumping
In case you need a version type in your Ruby code, take a look at the new release of Versionaire which adds a Kernel Refinement to give you a Version conversion function much like Kernel’s own Interger, String, Array, Hash functions. Even better, your object space isn’t polluted! With this new release, you can also sequentially increase or decrease versions with ease. Enjoy!
Adding Multifactor Authentication in Rails 6 with Rodauth
The Rodauth authentication framework ships with multifactor authentication, supporting TOTP, SMS codes, recovery codes, and WebAuthn. It provides complete endpoints and HTML templates for setting up, authenticating, and disabling each MFA method. See how to add multifactor authentication to a Rails 6 app with Rodauth.
Day 21 - super_diff @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, let’s thank Elliot Winkler for the twenty first write-up in the Ruby Advent Calendar 2020: Day 21 - super_diff Gem - A More Helpful Way to View Differences Between Complex Data Structures in Test Spec(ification)s. Cheers. Prost.
Best Ruby Programming Book of Year 2020 Award Goes To...
… Black Hat Ruby - Offensive Ruby Programming for Hackers and Pentesters by Sabri Saleh Hassanyah. Congrats! PS: What’s your ruby programming book of the year 2020?