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.
Introducing JavaScript and TypeScript client for AnyCable
Vladimir Dementyev from Evil Martians introduces a fresh take on a client library for Rails Action Cable. Implemented in JavaScript and TypeScript, it is intended for the free and pro users of AnyCable, giving them a handful of new features, but is also 100% compatible with vanilla Rails for a more modern, maintainable, and robust client code.
What's new in Polyphony - July 2021 edition
Polyphony is a Ruby gem for creating highly concurrent Ruby apps. Here are the latest updates.
I've made a dependency graph for DRY-RB!
Do you wonder where to start learning DRY-RB? This may help you! [more inside]
Setup Factory Bot in Rails
Link: https://thedevpost.com/blog/setup-factory-bot-in-rails/
How to ignore Bullet in RSpec tests
The Bullet gem is an excellent tool for finding opportunities to improve how you grab data via ActiveRecord. On a recent project, we’ve been running Bullet in our test environment as well as development. It has helped us find some improvements to areas of the app we rarely hit when developing new features. [more inside]
Untangle your code with MORE than service objects! Meet dry-monads
Anyone knows how complex Rails controllers can become. In the new Hanami Mastery episode, I show how to solve it with Service Objects on Steroids. [more inside]
Spina CMS 2.1 – Hotwire ⚡️ Edition
Spina CMS has been rebuilt from scratch using Hotwire, ViewComponent, Tailwind and JSONB. Because of the new document db approach in PostgreSQL, complex pages load a lot faster. Check it out at spinacms.com.
Let's watch a Ruby tech talk together 📺🎉
Do you have hundreds of tech talks sitting on your “Watch Later” list on YouTube… Sounds more like a “Never Watch” list, right? 🙈 [more inside]
DTN (IQfeed) client
Hey folks, I just released a pet project of mine https://github.com/kvokka/dtn Will be very thankful for any feedback and ofc GitHub :star:
Fullstaq Ruby now packages Ruby 3.0.2, 2.7.4 and 2.6.8
Fullstaq Ruby provides precompiled binaries for Ruby in DEB and RPM format. You can optionally opt-in for memory optimization patches such as Jemalloc and malloc_trim. It’s the easiest to install Ruby in production and to keep it auto-updated. [more inside]
Rails form : back to basics
I wrote a tutorial that explains forms from scratch, in a Rails environment. I like to go back to basics, because in everyday work we use (too) many abstractions. https://bootrails.com/blog/rails-form-tutorial
Glimmer DSL for SWT System Tray
Glimmer DSL for SWT has shipped with explicit system tray support, greatly simplifying the addition of a tray item to an app. It also now supports multiple parallel animations on a canvas, and animation property data-binding. [more inside]
How to add an Emoji in Ruby on Rails Application
Ruby on Rails applications can be integrated with amazing features including adding emojis. Here’s how you can use Gemoji RubyGem to add emoji in RoR application. [more inside]
ActiveRecord CTE
activerecord-cte gem brings Common Table Expressions support to ActiveRecord and makes it super easy to build and chain complex CTE queries. [more inside]
command_kit 0.1.0 released!
command_kit 0.1.0 has been released! After much work, feedback, testing, this is the first stable release of CommandKit. CommandKit is a new Ruby CLI toolkit for building correct and robust CLI commands as plain-old Ruby classes that include modules. 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.
Optimizing Memowise Performance
MemoWise is benchmarked as the fastest Ruby memoization gem. This post describes how we made it so speedy. [more inside]
Improve Ruby on Rails App Development Performance in 5 simple ways
Improve your Ruby on Rails application development performance using these 5 simple ways and take your RoR app development lifecycle to the next level. [more inside]
Glimmer DSL for SWT Hello, Label! Sample
Learn the ins and outs of applying labels in Glimmer DSL for SWT desktop GUI with or without images, or just use as separators of content. [more inside]
Counting Active Record Queries
How does counting Active Record queries can be useful and how to implement it? Find out here: [more inside]