On Wednesday (June 20), the European Parliament will vote on the new Copyright Directive proposal. Whereas it has been agreed that the legal framework in force calls for a reform, Article 13 of the Directive may heavily impact the fundamental principles of the Internet as well as constitute a threat to the future of software development.
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
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.
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.
New to Ruby? This Ruby Gem Guide will show you how to install and work with our favourite local gems.