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.
Who was hiring at RubyConf 2019?
List of companies hiring at RubyConf 2019 organized in Nashville. [more inside]
Filtration and Searching in Rails
In this ARTICLE we are going to discuss how to implement filtration or searching workflows step by step in Rails by keeping our Rails app clean and dry. [more inside]
where.not with nil in ActiveRecord Rails
In this ARTICLE, you are going to know how the “.not” with where query behaves and sometimes gives unexpected results.
Instance Variables vs Class Instance Variables in Ruby
In this article, we will going to discuss how the instance variable reacts when associated with the class itself and when with the object of class. Ruby
web_pipe: one-way pipe rack application builder
https://github.com/waiting-for-dev/web_pipe web_pipe is a modular rack application builder through a pipe of operations on an immutable struct. In order to use in conjunction with dry-rb ecosystem, see also dry-web-web_pipe. If you want to use it with a Rails project, don’t miss docs for the rails extension.
Pulling the trigger: Update counter caches without Active Record callbacks
A complete how-to on using database triggers in a Rails app for ensuring that aggregated values filtering is fast, consistent, and avoids nasty race conditions. No Active Record callbacks involved!
In Continuous Integration, Run Fast and Fundamental Tests First
It’s great to keep your CI/CD pipeline fast, but you don’t need it to run all tests to get feedback on WIP. [more inside]
Ruby refinements and the sorbet type checker
A quick look at how well ruby refinements play with the sorbet type checker. https://trippett.co.uk/2019/11/18/ruby-refinements-and-the-sorbet-type-checker/
Rails 6 + React JS Application setup with simple CRUD operation
Setting up Rails application with ReactJS usually takes some time. Setting up React Router and Redux for Front-end is an essential part of using React with Ruby on Rails. [more inside]
A beginners' introduction to Ruby classes and objects
When you start learning Ruby, you often hear that everything is - or evaluates as - an object. Here’s an introduction for junior developers who want to get the gist of objects and classes in Ruby. 👉 A beginners’ introduction to Ruby classes and objects
MissileEmitter: A littile fun tool for metaprogramming
Hi, I made my first ruby gem: MissileEmitter, It can help you define configurable DSL at the class level, enjoy it :)
Working with Capistrano: Tasks, Roles, and Variables
The Working with Capistrnao: Tasks, Roles, and Variables is a first article in a series where my goal is to provide core concepts and explore more advanced features of Capistrano whilst writing solutions to common problems maintaining web applications in Ruby. Enjoy!
Active Storage: permanent URLs w/o redirects, using Digital Ocean behind Cloudflare
A short post on how to use Active Storage with Digital Ocean fronted by Cloudflare (to save money on bandwidth), and how to load attachments directly from the CDN without requests going through the app first, and then being redirected to the CDN. [more inside]
'Redirect' using POST in Rails. Full story
Full story of the gem ‘repost’ creation - https://dev.to/vergilet/redirect-using-post-in-rails-54pb
Unlearn programming to learn Ruby
Why is the Ruby philosophy the exact opposite of other programming languages? SEE MORE
Rails_DB - new version released
If you need online access to DB in your application (could be useful for QA, bug investigation or cases when you don’t have access to DB by port) you can use this gem: https://github.com/igorkasyanchuk/rails_db . The new version has few fixes, improvements and dependencies upgrades.
ActiveRecord Migration: terminology
Why do we refer to database updates as migrations in ActiveRecord? SEE MORE
Testing Active Job with Rails
Writing tests for background jobs is a lot easier than you might think using Rails’ built-in helpers. You can use them to verify jobs were enqueued with the right arguments and you can also use them to run the jobs inline. Watch the screencast to learn how to test ActiveJob
Solving Puzzles with Amb
Ever since an article about fibers, I was curious about an amb operator. Recently, I’ve solved a few classical problems using amb. The result turned out to be short, simple and declarative. Check it out
Unit testing rack middleware
Underneath (almost) all Ruby web application lies the Rack architecture. With minimal interface, it is simple to write a middleware. Let’s see how to test it: https://tejasbubane.github.io/posts/2019-11-12-unit-testing-rack-middleware/