Post image

Why You should use Jekyll and Netlify CMS for your site

Is love at first sight even a thing? I believe it is! And our new site is a result of that love.
read more
Post image

Kafka vs Mosquitto - which tool is better for communication between microservices?

Recently microservices architecture is becoming more and more popular. In this post, we'll compare the two most popular messaging brokers - Kafka and MQTT (Mosquitto) to see which one is the best.
read more
Post image

How to Create Paid Order Using Shopify API

Creating an order using Shopify API with status set to 'paid' might be somewhat a tough and tricky task. Surprisingly, this is not a practical or a trivial issue. In fact, an ability to catch a payment outside of Shopify, using a custom payment gateway, can be really convenient.
read more
Post image

Value based pagination in Ruby on Rails

This is a quick tutorial that will show you how to properly handle value-based pagination in Ruby on Rails and where to use it.
read more
Post image

Count articles by category on search in Ruby on Rails

Have you ever wanted to calculate how many articles will be left in a certain category after search? In this blogpost, I will show you how to use elastic aggregations to achieve this.
read more
Post image

Ruby on Rails - how to create perfect enum in 5 steps

When your project starts you probably design ERD diagram or a similar one. Then, each time when a client passes new requirements to you it’s necessary to modify it. That process helps to understand the specific domain and mirrors the reality.
read more
Post image

11 types of apps you can build with Ruby on Rails

Wondering what platform to use for your next startup project? When it comes to building MVPs, Ruby on Rails still remains the king of frameworks but not only startups use Rails - a lot of very mature services, services you probably use every day, managed to utilize its full potential by creating applications used by hundreds of thousands of users.
read more
Post image

6 books every beginner developer needs to read

When you're a newbie in the complex code world and crave for knowledge, good resources are key to success. Blogs, forums, dev meetings - where to start? All of these options are worth trying but there are also those old-fashioned artefacts called books which could be very helpful. Here is a special list created by our team members. Check out what to read at the beginning of your coding journey...
read more
Post image

Importing data to database in Rails 50 times faster than normal

Have you ever needed to save lots of records with unique attribute to database using ActiveRecord? Have you noticed how time consuming such task is? I would like to show you how to do it quickly.
read more
Post image

Run services in the background

Some time ago [Marcin wrote about basic design patterns in Ruby on Rails](http://naturaily.com/blog/post/basic-design-patterns-in-ruby-on-rails). I’d like to go back to Service pattern in this post. I really like it, it's a good idea to place application’s business logic there. At Naturaily we use it quite often.
read more
Post image

Ruby on Rails implementation of a ranking system using PostgreSQL window functions

Hello, this article will show, how easily you can add ranking functionality to your project.
read more
Post image

Ruby on Rails view components with Trailblazer Cells

In recent times view components became a really popular web design pattern. View component is standalone part of view, which can be used at many views.
read more
Post image

API authentication using Devise and Doorkeeper (minimal setup)

Have you ever tried to setup Devise and Doorkeeper in the simplest possible way, without oauth applications etc? Here it is! In this article, I'll show you in a few easy steps that setup you searched for!
read more
Post image

Basic design patterns in Ruby on Rails

Not only as programmers, but in day-to-day life, we encounter some problems. Every person has similiar difficulties, and our society has found universal ways, **_patterns_**, to solve that problems. As programmers we also have problems, which can be solved by patterns.
read more
Post image

Rails on a diet

More and more apps are being created with an API support. Growing popularity of Angular.js and Backbone.js makes it even more important part of new projects. Why is that? There is a trend to seperate backend from frontend not only in terms of logic but also to split the project into two seperate ones - pure API backend and client-side-only frontend. What's all the fuss about? It is simple - you have a nice and clear API for a javascript webapplication and therefore you do not need to worry about the assets pipeline and other full-stack projects related issues. And you get an API for mobile devices. For free.
read more
Post image

How to remove old database migrations in Ruby on Rails

Recently we’ve overtaken a big project for maintenance and further development. It’s a Rails application with many models, controllers and of course lots of database migrations.
read more