Check for Unauthorized Access

Example: A user owns a list of projects, he should not see projects of the others. Instead of @project = Project.find(params[:id]) . We should use

@project = @current_user.projects.find(params[:id])


The performance of a web application is crucial so what optimization techniques helped me improve the performance of my app?

Tips to optimize the performance of a Ruby on Rails app

Eliminate the N+1 query problem

N+1 means one line of code results in…

The business model

Trước khi review quyển sách này, mình muốn gửi lời cảm ơn chân thành đến người anh PO (Product Owner) đáng kính ở công ty Codelink. Đây là món quà mình nhận được trước khi rời công ty để bắt đầu công việc kinh doanh bên ngoài. …


I knew many languages before I created Ruby, but I was never fully satisfied with them. They were uglier, tougher, more complex, or more simple than I expected. Throughout the development of the Ruby language, I’ve focused my energies on making programming faster and easier. Ruby is designed to make…

Nguyen Phu Cuong

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store