Tag Archives: Tip

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 …

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 …

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 …