Tutorials

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...





Websocket Shootout: Clojure, C++, Elixir, Go, NodeJS, and Ruby
When a web application has a requirement for real time bidirectional communication, websockets are the natural choice. But what tools should be used to build a websocket server? Performance is important, but so is the development process. A perfor...
