raise not found error in controller only for controller actions