Can someone explain "Authorizing Ownership"?
I've been going through the Railscasts' - 7 Security tips, and was wondering how is the "current_user.projects.find" implemented?
# projects_controller.rb
def show
@project = current_user.projects.find(params[:id])
end
Thank you!