탐색 모음과 세로 막대가 있습니다. 탐색 모음에는 검색 상자, 사이드 바 최소화 버튼, 프로필 드롭 다운 상자 및 로그 아웃이 있습니다.레일에서 페이지를 다시로드 한 후 일부 기능이 작동하지 않습니다.
사이드 바에는 집이 있고, 주문에 대해 문의하고 있습니다.
내 썩은 페이지가 집에 있습니다. 루트 페이지를로드하면 일부 이미지가 표시되지 않습니다. 사이드 바에서 홈 링크를 클릭하면 표시됩니다. 드롭 다운 목록에서도 똑같은 일이 발생하며 페이지를 다시로드 한 후에도 작동하지 않습니다. jquery 플러그인도 사용하고 있습니다.
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require_tree .
내 문제를 해결하기 위해 추가해야하는 코드를 알려주십시오. 나는 레일에 처음 왔어. 고마워.
업데이트
<div class="table-responsive">
<table class="table table-actions-bar m-b-0">
<thead>
<tr>
<th></th>
<th>product Name</th>
<th>product status</th>
<th style="min-width: 80px;">Manage</th>
</tr>
</thead>
<tbody>
<% i =0 %>
<% @products.each do |products| %>
<% if i == 0 %>
<tr>
<td><span data-plugin="peity-bar" data-colors="#5fbeaa,#5fbeaa" data-width="80" data-height="30">5,3,9,6,5,9,7,3,5,2</span></td>
<td><img src="assets/products/iphone.jpg" class="thumb-sm pull-left m-r-10" alt=""> <%= product['productname'] %> </td>
<% if product['status'] != "buy" %>
<td><span class="text-custom"><%= product['status'] %></span></td>
<% else %>
<td><span class="text-danger"><%= produt['status'] %></span></td>
<% end %>
<td>
<a href="#" class="table-action-btn"><i class="md md-edit"></i></a>
<a href="#" class="table-action-btn"><i class="md md-close"></i></a>
</td>
</tr>
이 데이터에 따라 그래프입니다 ..
제거하기 위해 점프를했습니다 경우에 그 넣을 수 있습니다 'turbolinks' 귀하의 문제를 해결할 것입니다 – uzaif
제거 // = turbolinks를 필요로 할 때 오류가 발생합니다 "product # index의 Sprockets :: FileNotFound가'application/javascript '유형의'turbolinks '파일을 찾을 수 없습니다" – khalidh
서버를 다시 시작 했습니까? – uzaif