Tutorials


Using Rails Session Cookies for API Authentication
No part of the web app is rendered by Rails. The Rails app is strictly a JSON API. And the web app is a standalone bundle of HTML, CSS, and JavaScript.Given that the API has protected resources that require authentication, I had a decision to make...




Optimize Dokku Deployment Speed for Ruby on Rails with Dockerfile
Dokku lets you setup Rails hosting infrastructure on a simple VPS without much dev ops experience. Although it is easy to get started, a default config might result in very slow and unreliable deployments. In this blog post, I will describe how I'...


Uploading files directly to S3 using Pre-signed POST request
Pre-signed POST request allows for securely uploading large files directly to S3 via a signed expirable url, bypassing the 30 seconds Heroku time limit.It’s easy to create a form in Rails which can upload a file to the backend. The backend, can th...