-
Enhancing Development Efficiency: Colorizing Rails Logs for Rapid Debugging
If you’re working on a large Rails application with lots of controllers, layouts, and view pages, it can be tough to figure out which parts of the code are being called when a request is made. Whether you’re new to the project or have been working on it for a while, the logs can be a bit confusing because everything looks the same.
Read more -
Setting up Elasticsearch, Chrome, and Chromedriver on Drone CI
Recently, we started using Elasticsearch to make locations search fast.
Read more -
Import and export tips of Heroku Postgres database
I always keep forgetting Heroku’s database import and export commands flow. So here I am writing down that flow for me. I hope it might be useful for other Heroku users too.
Read more -
Webpack errors in my Rails app
While spinning up my client’s Rails project, I was getting a weird webpack error:
Read moreconfiguration has an unknown property 'mode'
. -
Rails adds Enumerable#pick method
Rails 6 adds a new method
Read morepick
method in Enumerable module. -
Primary or default flag to the Rails models
Update: Please check updated changes here.
Read more -
Convert an ActiveRecord object into the fixture
Sometimes in your development environment, you might have created a valid active record object which you want to use as a fixture data in your test, so you don’t want to waste your time from building fixture manually.
Read more -
Gotchas with Rails System Testing
I’m not so familiar with Rails system testing, but recently we started to write system tests in our app. We do write model tests and controller tests which cover most of the business logic. Our app started growing a lot, and we found in some pages there were silly mistakes we had in our app which were related to JavaScript/Ajax, and which indirectly affected some of our users.
Read more -
Microservices using Rails, HTTP & RabbitMQ
Imagine that, we have built one monolithic app Cricket Live Score where an admin adds the live match scores into the database, and users use this app to get to know the current score about the live match. Match like India v Pakistan is very popular and it tends to have lots of traffic. Sometimes app goes down because it can’t handle such heavy traffic.
Read more -
Voice based phone verification using Twilio
I had written this blog when I was working for BigBinary. Please read here.
Read more -
Phone verification using SMS via Twilio
I had written this blog when I was working for BigBinary. Please read here.
Read more