在rails 5中,我使用NewRelic来监控应用程序。在newrelic中,我立刻得到<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="https://use.fontawesome.com/releases/v5.0.2/css/all.css" rel="stylesheet">
<body>
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#assuredconx">Mr.X</a></li>
<li><a data-toggle="tab" href="#assuredconb">Mr.Boy</a></li>
<li><a data-toggle="tab" class="add-contact" style="cursor:pointer"><i class="fas fa-plus"></i></a></li>
</ul>
<div class="tab-content">
<div id="assuredconx" class="container-fluid tab-pane fade in active">#1</div>
<div id="assuredconb" class="container-fluid tab-pane fade">#2</div>
</div>
最耗时。我不知道为什么会出现这个问题。
在routes.rb中,
Middleware/Rack/ActionDispatch::Routing::RouteSet#call
请帮我解决这个问题。