You are building an e-commerce app and at some point you introduce a Category model as a part of Product data. A Category can have various subcategories, which are represented by the same model. At this point, it's obvious we are dealing with a tree-like data structure. Step by step, I'll introduce three ways of iteration over such a structure and compare their performance.
Take your very first steps with Ruby! This tutorial will show you how to set up an environment for future development in Ruby on Rails.
Rails 5.2 and Active Storage - attach files, the modern way.
This tutorial will show you how to deploy a Rails app via Capistrano, run it with Puma, restart it without sudo access and be able to host multiple environments and apps on same server
Wonder why visitors leave your website in several seconds without engaging or responding to your CTA? There are several aspects that decide if people are willing to continue the journey on your www or click ‘back’ shortly after entering it.
This time we'll jump to the next level by focusing on advanced RoR resources, perfect for those who have vast experience under their belt and feel comfortable in Ruby on Rails environment.
Find out how to create adjustable text area using the contenteditable element and add text highlighting.
Part two: RoR tutorials for those with some coding experience.
As long as your application is small and has a limited amount of visitors everything goes smooth and fast. At this stage you don’t have to worry (well, you should, but let’s assume that time to market was the key factor) about making it more performant by focusing on website optimization. But as your website grows, gains popularity and visitors, loading time starts to increase...
After creating your Ruby on Rails app you obviously want to reach as many users as possible. That’s the right time to think about internationalizing it, as not everyone is an English native speaker or uses it fluently enough. Fortunately, there is an easy-to-use and extensible framework to make your application multi-language-friendly.
When creating an app in Ruby on Rails, from the very beginning, on every single step of your developer's journey, you're going to use ActiveRecord methods. Lots of them, and frankly speaking, it's good to know them well (if not by heart).
Small programs usually can be stored in one file so it won’t be a problem to read (and understand) them. Things start to complicate as your code grows: one day you may lose yourself in your own chaos and find it hard to organize your application. At this point, the best idea is to split your code (as a whole) into several files. To do that you need some helpful tricks that will let you use those files together. That's where the Ruby Methods come in.
Ruby comes with many statements and methods designed for looping. This amount can astonish both fledgling coders and developers experienced in other programming languages. In this post you'll be introduced to all ways of creating a loop in Ruby.