CodeDeHoc

Blog to note things I've learned

MySQL Router


Avoid duplicate associated records when use rails nested attribute many to many


Are Rails scope and class method different?


404 error when rebuild docker


Sort memory in MySQL


Set up CircleCI for Rails project


Deploy multiple sources to the same server (Part 3)


Deploy multiple sources to the same server (Part 2)


Aggregate errors when config ssl certificate using nginx


Deploy multiple sources to the same server (Part 1)


Leaking information when serve static file


Connect to both postgresql and mongodb in the same Rails app


Short polling and Long polling


Rails Active Storage display .gif file


Handle self reference in database using Nested Set Model


Bitemporal Model


How Rails handle migration version?


Remove migration index in Rails 6


A function to handle generate product code in Ruby


Detect N+1 with prosopite gem and rspec