Tutorials



How to find and fix bug in JRuby and don't go crazy
Hi there. I wrote this post to show how much effort is invested in small and simple one-line pull request. I tried to show the whole process from the appearance of the problem upon fixing it and sending patch back to upstream.Other day I tried new...


Rails 5.1 does not share thread_mattr_accessor variable with subclass
Rails 5.0 provides mattr_accessor to define class level variables on a per thread basis.However, the variable was getting shared with child classes as well. That meant when a child class changed value of the variable, then its effect was seen in t...

The hidden cost of the invisible queries in Rails
Ruby on Rails is awesome, it is really awesome. It allows us to create web applications without knowing every involved technology. After all, Rails is optimized for programmers happiness and it does a terrific job.One of those technologies where R...

Integrating DynamoDB with Ruby on Rails Application
A typical Ruby on Rails application comes with ActiveRecord, which makes using RDBMS (such as MySQL, PostgreSQL etc) cake walk. There are times, when we want to leverage power of NoSQL with our Rails application. There are many NoSQL database avai...



Testing a Feature with Rails and RSpec: A deep dive
Testing your code is important. We all as Rubyists know this, we hear about testing all the time. Fast tests, slow tests, it's everywhere in the Ruby community. However for all the talk of testing something that seems to be a recurring theme for d...