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.
Using AWS S3 For File Storage in Rails Apps
S3 is an excellent way to store files scalably and reliably. This article by Jeff Morhous will show you how to use S3 to store files uploaded to a Rails app. https://www.honeybadger.io/blog/rails-app-aws-s3/
Custom esbuild for Rails
Inside Rails 7 apps, esbuild is wrapped into jsbundling. But what if you want to customize this build ? https://www.bootrails.com/blog/custom-esbuild-for-rails/
[Screencast] Hotwire Modals
In this episode, we look at creating an unobtrusive and efficient way to launch Bootstrap modals using Turbo and Stimulus. https://www.driftingruby.com/episodes/hotwire-modals
Loading Rails fixtures for seeding the database
I really like Rails fixtures to model the testing world. Here’s how I use fixtures in development as well.
The power of group+aggs User.calculate_in_group(:count, :age, [...10, 10...50, 50..])
https://github.com/igorkasyanchuk/calculate_in_group with this gem you can group and do aggregations with ranges or values. More examples available on github.
Dependency Injection in Ruby - GOD Level! Meet dry-system! (Part 2)
Dependency injection brings you great power but comes with its own headaches. If you can get rid of them, You’re left with the power only. [more inside]
Glimmer Wordle Desktop GUI
I implemented a Wordle word game desktop GUI app test-first using Glimmer DSL for SWT (JRuby Desktop Development GUI Framework) as inspiration by the recent Kevin Newton’s blog post about Solving Wordle in Ruby. [more inside]
2021 Was The Year of The Ruby Desktop!!!
Gerald Bauer started 2021 with a reddit post having the following question in its title: “2021 - The Year of the Ruby Desktop?” [more inside]
FRS - automation script for spin-uping Ruby developer environment
Configure your developer stuff on Linux Ubuntu in minutes 🚀 Focus on development, not on developer tools! https://github.com/RubyWorkout/frs
Rubber Duck Dev Show Episode 28 | Exploring the Jamstack
Hear two rubyists explore the uses of the Jamstack: https://www.rubberduckdevshow.com/episodes/28-exploring-jamstack/
How to Deal With and Eliminate Flaky Tests
https://semaphoreci.com/community/tutorials/how-to-deal-with-and-eliminate-flaky-tests Flaky tests are pretty common in the software industry. But they only become a serious problem when we’re not proactive about fixing them.
Ruby Regex : a friendly tutorial
Ruby regexes are not so easy to grab. We tried to make this little tutorial as simple as possible. [more inside]
[screencast] Function in Ruby
Hello all, I have made a screencast about functions in Ruby, one may watch it here https://youtu.be/uvcGlgEovP0
Glimmer DSL for LibUI Wins Fukuoka Ruby 2022 Special Award
I am very happy to announce that Glimmer DSL for LibUI (Ruby Desktop Development GUI Library) has been judged directly by Matz (creator of Ruby) and the 2022 Fukuoka Ruby Award Competition Judges and have won a Fukuoka Ruby 2022 Special Award! [more inside]
fake_io 0.1.0 released
fake_io 0.1.0 has been released. FakeIO is a module that can be included into any Class in order to create IO-like objects. FakeIO emulates buffered IO, while delegating the raw reads/writes to the io_read/io_write methods. FakeIO can be used to create IO-like wrapper objects around non-IO network data sources (ex: RPC, WebSockets, etc). FakeIO supports all Ruby 2.x and 3.x IO methods.
Automatic RubyGems Multi-Factor Authentication with Gemsmith
Hey all. 👋 Gemsmith 16.0.0 has been released and also completely rewritten on top of Rubysmith which brings a lot of modern convenience to building and maintaining your Ruby gems. Included in this release is the ability to automatically authenticate to RubyGems using Multi-Factor Authentication as long as your YubiKey is plugged into your machine. The linked article will walk you through how all of this works and how you leverage this functionality to speed up your own development workflow. 🚀
[screencast] Ranges in Ruby
Published a screencast about Ranges in Ruby, one could watch it here: https://youtu.be/aUdsaCUkL7g
First stable version of 📤 smtp_mock has been released 🚀
💎 Ruby SMTP mock. Mimic any 📤 SMTP server behaviour for your test environment with fake SMTP server: https://github.com/mocktools/ruby-smtp-mock
Dependency Injection in Ruby from Zero to Hero (Part 1)
Dependency Injection is an extremely useful programming technique and can be easily implemented in Ruby! But comes with own cost. Mastering it is an important skill to leverage the power of Hanami applications! dry-container is one way to help you with it! [more inside]
Sidekiq, Rails : full tutorial
Sidekiq allows Rails to launch any task in the background. Let’s see how, from zero to production. [more inside]