private function _view_file_exists()
    {
        $route = Rails::application()->dispatcher()->router()->route();
        /**
         * Build a simple path for the view file, as there's no support for
         * stuff like modules.
         * Note that the extension is PHP, there's no support for different
         * request formats.
         */
        $base_path = Rails::config()->paths->views;
        $view_path = $base_path . '/' . $route->path() . '.php';
        return is_file($view_path);
    }
private function _view_file_exists()
    {
        $route = Rails::application()->dispatcher()->router()->route();
        /**
         * Build a simple path for the view file, as there's no support for
         * stuff like modules.
         * Note that the extension is PHP, there's no support for different
         * request formats.
         */
        $base_path = Rails::config()->paths->views;
        $view_path = $base_path . '/' . $route->path() . '.php';
        return is_file($view_path);
    }
private function _view_file_exists ( ) { $ route = Rails :: application ( ) -> dispatcher ( ) -> router ( ) -> route ( ) ; /**
         * Build a simple path for the view file, as there's no support for
         * stuff like modules.
         * Note that the extension is PHP, there's no support for different
         * request formats.
         */ $ base_path = Rails :: config ( ) -> paths -> views ; $ view_path = $ base_path . '/' . $ route -> path ( ) . '.php' ; return is_file ( $ view_path ) ; }
If the method for the requested action doesn't exist in
the controller, it's checked if the view file exists.
If the method for the requested action doesn t exist in the controller it s checked if the view file exists .