High-level Elasticsearch Ruby framework based on the official elasticsearch-ruby client
Multi-model indices.Index classes are independent from ORM/ODM models. Now, implementing e.g. cross-model autocomplete is much easier. You can just def.
For organizing Rails projects, domain objects are good and service objects are bad
In the early stages of a Rails project’s life, the pattern of putting all the model code into objects that inherit from Active Record works out pretty .
42 performance tips for Ruby on Rails
Since Ruby on Rails is not the fastest web framework out there you sometimes need to improve the performance in order to keep up. This post will list 4.
Getting Started with the Sorbet Type Checker in Rails
At Monolist, we’re building a command center for engineers. We integrate with the APIs of all the tools engineers commonly use to aggregate their tasks.
From Rails to Elixir: Know Your App
In fact, Rails has been the de facto choice not only for my professional projects but also for my personal ones. Most of the times I come up with this .
Efficient algorithm to check dates overlap – Rails Guides
Picture this. A real estate site’s guest wants to book a hotel for specific dates. The system should check whether these dates are available, i.e. if t.
Rails Design Patterns: Presenter
Why do we need design patterns?The problem is that Rails architecture, Model-View-Controller, gives you a basic structure to put your code in.But this .
Write a simple DSL in Ruby
A DSL (Domain Specific Language) can be thought of as a dialect built for a unique purpose. At the bottom, it is a set of functions that are made avail.
Stubbing calls to AWS in Rails tests
I use aws-sdk gem to deal with file uploads to S3 in my Rails application. I needed to add tests for the account logo upload and removal feature. I use.
Mastering Packs in Webpacker
In the previous article, we saw what Webpacker is and how Rails 6 has integrated it. In this article, we will understand how to use the packs.A new Rai.