Tutorials



Rails 5 adds ability to create module and class level variables on per thread basis
Rails already provides methods for creating class level and module level variables in the form of cattr_* and mattr_* suite of methods.
In Rails 5, we can go a step further and create thread specific class or module level variables.

Better Nested Attributes in Rails with the Cocoon Gem
In this article we are going to discuss how to build more complex forms using Rails’ nested attributes feature. I will show you how to manipulate multiple associated records from a single form and properly set up the models and controller to enabl...


Ruby’s Unary Operators and How to Redefine Their Functionality
In math, a unary operation is an operation with a single input. In Ruby, a unary operator is an operator which only takes a single 'argument' in the form of a receiver. For example, the - on -5 or ! on!true. In contrast, a binary operator, such as...


