rails

Using serialize option in Ruby on Rails

In this post, I am going to show you how to make use of serialize option in Ruby on Rails so that you can store information in your database more efficiently. First of all, have you ever been in a situation which you want to store an array or a…

Long-polling with Puma, Rails 4 and Server Sent Events

In this post, I am going to show you how to create a long polling server with Puma, ActionController::Live in Rails 4 and Server Side Events in modern browsers. Why there is another post when there are already many of them on the Internet? It is just because I…