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.
Rails 7 extends enum support for the Postgres adapter
Renaming the enum, adding and renaming the values of the enum made easier with the latest changes to the Postgres adapter in Rails 7 [more inside]
Tips for writing Rails tasks with Thor instead of Rake
Thor is a great way to write simple CLIs like one-off Rails scripts, but it does have its own gotchas. Here’s how to use Thor in practice. https://mattbrictson.com/blog/rails-tasks-with-thor
Rails Console Tips and Tricks
Some tips and tricks to get the most out of the Rails console. [more inside]
How to get offline documentation for Ruby, Rails and your gems
The latest issue of Rails Tricks is out! It covers how to get offline documentation for Ruby, Rails, and your gems in case you take a laptop on your vacation. https://greg.molnar.io/blog/rails-tricks-issue-11/
Pundit testing approaches compared
I am an old-time CanCanCan user and recently started to consider switching to Pundit. I am also a big fan of RSpec. Given how important Authorization (AuthZ) is, I want to test it properly. [more inside]
Intro to Propshaft: A new asset pipeline for Rails
Explore the future of asset pipelines in Rails with Propshaft! Discover how this cutting-edge technology enhances the management and delivery of assets while simplifying your development workflow. https://www.honeybadger.io/blog/propshaft-tutorial-migration/
The Future of Dragon Ruby with Amir Rajan | Rubber Duck Dev Show 89
In this episode, we discuss the future of Dragon Ruby with Amir Rajan: https://www.rubberduckdevshow.com/episodes/89-the-future-of-dragon-ruby-with-amir-rajan/
[ANN] httpx 0.24.0 released
httpx 0.24.0 has been released. [more inside]
A new release or rails_performance gem
https://github.com/igorkasyanchuk/rails_performance Here are the new features added: [more inside]
Deploying a Rails app with MRSK
I wrote an article about deploying a Rails app to a VPS with MRSK. Using Caddy in front of the Rails server and running a Sidekiq worker on the same host. https://greg.molnar.io/blog/deploying-a-rails-app-with-mrsk/
Setting Up Business Logic with DCI in Rails
In part two of this series, we’ll organize business logic in your Rails application using DCI: https://blog.appsignal.com/2023/06/14/setting-up-business-logic-with-dci-in-rails.html
Fortify Rails Security Webinar
On Monday June 12th, 2023, FastRuby.io partnered with Expedited Security to talk about how to secure your Ruby on Rails application. [more inside]
Readonly Associations and Upgrading to Rails 4
After upgrading your application from Rails 3 to Rails 4, you might start seeing the following deprecation warning if you are using the readonly option in an association. [more inside]
Enforcing an API Rate Limit in Sidekiq 7
I discovered an easy way to implement job throttling using the ruby-limiter gem and the new “capsules” feature of Sidekiq 7. https://mattbrictson.com/blog/applying-a-rate-limit-in-sidekiq
How to Authenticate to Postgres from Rails using an SSL certificate
Rails configuration settings needed to authenticate to Postgres with an SSL/TLS certificate. Both locally and on Heroku, while keeping your private key secure: How to Authenticate to Postgres from Rails using an SSL certificate
Palantir & Testing in Dragon Ruby with Kevin Fischer | Rubber Duck Dev Show 88
In this episode, we discuss discuss Palantir & testing in Dragon Ruby with Kevin Fischer: https://www.rubberduckdevshow.com/episodes/88-palantir-testing-dragon-ruby-kevin-fischer/
Blue Ridge Ruby 2023 Recap
Last week at Blue Ridge Ruby, we heard a lot of great talks. I compiled a brief summary of the program. [more inside]