Development Logs


By: Calvin Chieng

Rails API Authentication

None, Basic, Token and ApiKey Authentication

Snippet Rails Authentication API

Nginx 1.13.9+ HTTP/2 server push

To reduce round trip time (RTT)

Guide Nginx HTTP2 Performance

Assets precompile fails because of insufficient memory

Fix it without buying more RAM

Error Rails Ubuntu

How to use yarn in Rails 5.1 to manage javascript dependencies?

Including steps to upgrade from older version of Rails

Guide Rails Javascript Yarn

How to set CAA DNS record?

To hint SSL CA if they are authorized to issue a cert for this domain

Guide Security SSL DNS

How to upgrade Gradle in your Android project?

Gradle Distribution and Android Gradle Plugin

Guide Android Gradle Upgrade

Redis store integration steps

Rails cache store using Redis

Guide Rails Cache Redis

Rails url helper does not respect "relative_url_root" configuration in mailer

Specify relative url for mailer using script_name

Error Rails ActionMailer Config

Letsencrypt "Invalid response" error during renewal due to http/https redirection

Make sure the authorization file can be accessed

Error Nginx SSL Letsencrypt

Integrate Google Sign-In

Using Google OAuth2 with Omniauth

Snippet Ruby Google Oauth2 Omniauth

Handling weekdays, weekends and public holidays

By using various built-in methods in Ruby and Rails

Snippet Ruby Rails Date Time

Define .ruby-version for all your app

To prevent wrong ruby version and gems being used in a multi-apps server

Error Ruby Version Passenger

False warning for Style/AndOr cop when used as chaining operation

"and" and "&&" does not always give equivalent result

Error Ruby Rubocop

Deploy rails app using Capistrano

Capistrano is an useful deployment automation tool

Guide Rails Capistrano Deployment

Use rails 5.1 encrypted secrets

To protect production credentials even if they are committed into git

Guide Ruby Rails Secret Encryption