Build and run your first Ruby On Rails Docker

In the recent year, the Ruby On Rails deployment has been shift from tranditional linux server to dockerization. Even myself has stop deploy Rails to production with linux server anymore. So in this blog I would like to help some starter to dockerize their Rails app with these simple step below. Requirements Installed docker Install …

Rails Scope VS Class Method

In rails to handle complex query, developers always chain query with scope and class methods. There are many online articles talk about fighting between scope and class method. Those articles talk about when you use them. For my personal experience I really like chain the scope and class method to handle complex query by split …

Rails performance indexing DB column

hkk

With my latest few projects, I practice on how to improve rails performance. With this blog, I would like to introduce a basic practice to improve query performance in rails by index table column. What is database indexing? Indexing is the way that database store data structure by stored and associated with the actual record, …

Stop Using Git Stash

Git version control is a popular version control for modern developer. As a ROR developer I am frequently use git stash. Sometime when an urgent fix come out I stash my changed and switch to other branch in order to fix it. Then I start to feel that git stash is dangerous as it only …