Tutorials

Ruby on Rails and DataTables plug-in. Ajax-sourced tables
If we talk about sending some asynchronous requests with Ajax, naturally we’ll need some API endpoint which would return us the dataset that we, in turn, will use for populating our table. But since I don’t feel like creating the whole REST API pr...




Writing GraphQL queries in native Ruby = Love ❤️ | Contentful
raphQL has made waves with front-end developers, but if you’re a backend developer, chances are it hasn’t infiltrated your world –– you might not even know what it is. And it’s not your fault. There has been a limited amount of blog posts, talks a...


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 nicely. Each model object gets its own database table, some validations, some associations, and ...

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 in one place. For example, our customers trust us to pull in their Jira issues, Github pull req...


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 they are not overlapping with some other existing booking. Let’s say, software engineers have wri...