Rails Cache Stores to consider

Rails app performance is a serious issue for mid-level startup. The big mess in project develops quality block you away from improving you app speed. To me, a short-term solution is caching. The method I prefer to use for existing project when the client wants to improve performance immediately while project scope is out of …

Install Ruby On Rails With RVM

This is just a simple tutorial for fresh start Ruby On Rails developer to install it. For Ubuntu and MacOS. Install RVM See installed ruby version Install Lastest Ruby See installed ruby version Install JS Runtime it is optional. Need to rake assets:precompile See installed node version Install Rails See installed rails version Now you …

PostgreSQL JSONB

I believe if you are in Postgres Community, you will know about powerful PSQL is. I have worked across multiple databases include PostgreSQL, MySQL, and Mongo DB buy recently I take advantage of PostgreSQL JSONB that’s why I decided to craft this blog. What is Postgres JSONB JONB is one of the data types in …

Try SMTP Server From Rails Console

When working with a none technical person, it is really difficult to identify the problem of SMTP config. It hard to define because the credentials or our config is wrong. Also, we don’t want to config and release it then user spot it is not working. So I create a snippet that can test the …

Rails Automate Deployment With Capistrano

Now most of the projects hosted with Kubenetes, even so I still recommend the automate deployment with Capistrano for small or young start up in state of testing, fresh, or with low budget. Which can rollout your Rails App to production easily with less budget. that is why I start to craft this guide. What you …

Use UUID as primary key in Rails On Rails

Recently with expected high scale projects, I started it by use UUID as the primary and foreign key of the tables. The result comes with a perfect high scale result. This methodology comes with bad and good effect. Even so, I recommend initing project with something like this if want to have easy and flexible scaling to your app …

Ruby On Rails Response Status Dictionary

Working with Ruby On Rails, the way to give response status is: Sometimes, we get lost in the middle of finding the correct symbol. So here I list it all that you can find it in one single page. Code Message Symbol 1xx Informational     100 Continue :continue 101 Switching Protocols :switching_protocols 102 Processing :processing …

Ruby On Rails Popular Uploaders

It is common for web application that need to upload images, documents or other files. Implement your own uploader or pick the wrong libraries will hurt yourself in the future scale. So that why in this blog post in introduce 3 popular uploader gem. You can found the full source code at https://github.com/Uysim/rails-uploaders. 1. Carrierwave Carrierwave …

How to pick a good gem for Ruby on Rails project?

For years in Ruby on Rails development, I notice this developer can have advantages of its community by its reach gems. Those gems are helpful and rich features. Even so, I heard from some newbie that mentioned about some awful gems. I decided to take look. Oh no! some gems have never committed for years, …

Set Timezone by each user with Ruby on Rails

This is a gist to help some developers. It uses to set the timezone for each user, company or tenancy, etc… In around each request we set timezone base on that scope. It is matched for both cases read and write time into the database. Normally, when we set the timezone To see all available …