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.
3D & Robotics in Dragon Ruby with Kota Weaver | Rubber Duck Dev Show 90
In this episode, we discuss working with 3D and robotics in Dragon Ruby with Kota Weaver: https://www.rubberduckdevshow.com/episodes/90-3d-robotics-in-dragon-ruby-with-kota-weaver/
Glimmer DSL for WX (wxWidgets GUI Toolkit) Using wxruby3
Glimmer gets a new GUI DSL in 2023 called Glimmer DSL for WX (Early Alpha 0.0.5 was built in 1 day) to support the very mature wxWidgets GUI toolkit that renders cross-platform native GUI controls (using a brand new wxruby3 binding)! [more inside]
Using Rails Credentials in your Rails App
Did you know that Rails comes with a built-in credentials manager to replace .env variables? Heres how you can start using it — https://railsnotes.xyz/blog/custom-credentials-in-your-rails-app
If You Liked Shoes, You'll Love Glimmer!
A new Glimmer FAQ (Frequently Asked Questions) section has been added to the Glimmer project README on GitHub in order to answer questions like “How do Glimmer GUI DSLs compare to Shoes?” and “What is the difference between Glimmer and Glimmer DSL for SWT?”, among others. [more inside]
Rails design patterns - the big picture
https://rubyhero.dev/rails-design-patterns-the-big-picture
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