In the events controller add the following
:before_filter :do_something_checking, :only=>[:show]
do_something_checking is a method in the events controller that perform checking whether id is belong to the logged in user, and redirect to the warning page.