title: Jquery nicescroll not working for tab in rails
body: <p>I have created multiple staffs and all staffs details show on index page using multiple tab in rails.staff list bellow 1)assistant directors,2)teachers,3)assistant teachers,4)bookkeepers,5)floaters and each staffs are show 100 record.
  I'm using jquery nicescroll plugin for my project but jquery nicescroll not working on tab.All pages working good normally.How can solve it?</p>
  
  <p>Here my index.html.erb</p>
  
  <pre><code>&lt;div id="content-header"&gt;
  &lt;h1&gt;All Staff&lt;/h1&gt;
  &lt;/div&gt;
  &lt;div id="breadcrumb"&gt;
  &lt;a href="/day_cares/dashboard" title="Go to Home" class="tip-bottom"&gt;&lt;i  class="glyphicon glyphicon-home"&gt;&lt;/i&gt; Home&lt;/a&gt;
  &lt;a href="/staff" class="current"&gt;All Staff&lt;/a&gt;
  &lt;/div&gt;
  &lt;div class="container-fluid" id="report"&gt;
  &lt;div class="row"&gt;
  &lt;div class="col-12 col-lg-12"&gt;
  &lt;div class="widget-box"&gt;
  &lt;div class="widget-title"&gt;
  &lt;ul class="nav nav-tabs"&gt;
  &lt;li class="active"&gt;&lt;a data-toggle="tab" href="#assistant_directors"&gt;Assistant Directors&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a data-toggle="tab" href="#teachers"&gt;Teachers&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a data-toggle="tab" href="#assistant_teachers"&gt;Assistant Teachers&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a data-toggle="tab" href="#bookkeepers"&gt;Bookkeepers&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a data-toggle="tab" href="#floaters"&gt;Floaters&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div&gt;
  
  &lt;div class="widget-content tab-content"&gt;
  &lt;div class="tab-pane active" id="assistant_directors"&gt;
  &lt;div class="row"&gt;
  &lt;%= render 'staff_list', :staff =&gt; @assistant_directors %&gt;
  &lt;/div&gt;&lt;!-- /row --&gt;
  &lt;/div&gt;
  
  &lt;div class="tab-pane" id="teachers"&gt;
  &lt;div class="row"&gt;
  &lt;%= render 'staff_list', :staff =&gt; @teachers %&gt;
  &lt;/div&gt;&lt;!-- /row --&gt;
  &lt;/div&gt;
  
  &lt;div class="tab-pane" id="assistant_teachers"&gt;
  &lt;div class="row"&gt;
  &lt;%= render 'staff_list', :staff =&gt; @assistant_teachers %&gt;
  &lt;/div&gt;&lt;!-- /row --&gt;
  &lt;/div&gt;
  
  &lt;div class="tab-pane" id="bookkeepers"&gt;
  &lt;div class="row"&gt;
  &lt;%= render 'staff_list', :staff =&gt; @bookkeepers %&gt;
  &lt;/div&gt;&lt;!-- /row --&gt;
  &lt;/div&gt;
  
  &lt;div class="tab-pane" id="floaters"&gt;
  &lt;div class="row"&gt;
  &lt;%= render 'staff_list', :staff =&gt; @floaters %&gt;
  &lt;/div&gt;&lt;!-- /row --&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;&lt;!-- /widget-box --&gt;
  &lt;/div&gt;&lt;!-- /col-12 --&gt;
  &lt;/div&gt;&lt;!-- /row --&gt;
  &lt;/div&gt;&lt;!-- /container-fluid --&gt;
  </code></pre>
  
  <p>Here my render page staff_list.html.erb</p>
  
  <pre><code>&lt;div class="widget-content"&gt;
  &lt;table class="table table-bordered table-striped table-hover data-table"&gt;
  &lt;thead&gt;
  &lt;tr&gt;
  &lt;th&gt;Name&lt;/th&gt;
  &lt;th&gt;Birthday&lt;/th&gt;
  &lt;th&gt;E-Mail&lt;/th&gt;
  &lt;th&gt;Hire Date&lt;/th&gt;
  &lt;th&gt;Credit Hours&lt;/th&gt;
  &lt;th&gt;In-service Hours&lt;/th&gt;
  &lt;th&gt;Options&lt;/th&gt;
  &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
  &lt;% staff.each do |staff| %&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;%= staff.name.truncate(25) if staff.name %&gt;&lt;/td&gt;
  &lt;td&gt;&lt;%= staff.birth_day.strftime('%m/%d/%Y') if staff.birth_day %&gt;&lt;/td&gt;
  &lt;td&gt;&lt;%= staff.user.email %&gt;&lt;/td&gt;
  &lt;td&gt;&lt;%= staff.hire_date.strftime('%m/%d/%Y') if staff.hire_date %&gt;&lt;/td&gt;
  &lt;td&gt;&lt;%= staff.credit_hours %&gt;&lt;/td&gt;
  &lt;td&gt;&lt;%= staff.in_service_hours %&gt;&lt;/td&gt;
  &lt;td&gt;
  &lt;% if staff.user.has_role? :assistant_director %&gt;
  &lt;div class="button_staff_index"&gt;
  &lt;%= link_to 'Edit', edit_assistant_director_path(staff),:class=&gt;"btn btn-primary" %&gt;
  &lt;%= link_to 'View', staff,:class=&gt;"btn btn-success"  %&gt;
  &lt;%= link_to 'Delete', staff, method: :delete, data: { confirm: 'Are you sure?' }, :class=&gt;"btn btn-danger"  %&gt;&lt;/td&gt;
  &lt;/div&gt;
  &lt;% elsif staff.user.has_role? :teacher %&gt;
  &lt;div class="button_teacher_index"&gt;
  &lt;%= link_to 'Edit', edit_teacher_path(staff),:class=&gt;"btn btn-primary" %&gt;
  &lt;%= link_to 'View', staff, :class=&gt;"btn btn-success" %&gt;
  &lt;%= link_to 'Delete', staff, method: :delete, data: { confirm: 'Are you sure?' }, :class=&gt;"btn btn-danger"  %&gt;&lt;/td&gt;
  &lt;/div&gt;
  &lt;% elsif staff.user.has_role? :assistant_teacher %&gt;
  &lt;div class="button_assistant_teacher_index"&gt;
  &lt;%= link_to 'Edit', edit_assistant_teacher_path(staff),:class=&gt;"btn btn-primary" %&gt;
  &lt;%= link_to 'View', staff,:class=&gt;"btn btn-success" %&gt;
  &lt;%= link_to 'Delete', staff, method: :delete, data: { confirm: 'Are you sure?' },:class=&gt;"btn btn-danger" %&gt;&lt;/td&gt;
  &lt;/div&gt;
  &lt;% elsif staff.user.has_role? :bookkeeper %&gt;
  &lt;div class="button_bookkeeper_index"&gt;
  &lt;%= link_to 'Edit', edit_bookkeeper_path(staff),:class=&gt;"btn btn-primary" %&gt;
  &lt;%= link_to 'View', staff,:class=&gt;"btn btn-success" %&gt;
  &lt;%= link_to 'Delete', staff, method: :delete, data: { confirm: 'Are you sure?' },:class=&gt;"btn btn-danger" %&gt;&lt;/td&gt;
  &lt;/div&gt;
  &lt;% elsif staff.user.has_role? :floater %&gt;
  &lt;div class="button_floater_index"&gt;
  &lt;%= link_to 'Edit', edit_floater_path(staff),:class=&gt;"btn btn-primary" %&gt;
  &lt;%= link_to 'View', staff,:class=&gt;"btn btn-success" %&gt;
  &lt;%= link_to 'Delete', staff, method: :delete, data: { confirm: 'Are you sure?' },:class=&gt;"btn btn-danger" %&gt;&lt;/td&gt;
  &lt;/div&gt;
  &lt;% end %&gt;
  &lt;/tr&gt;
  &lt;% end %&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;/div&gt;&lt;!-- /widget-content nopadding --&gt;
  </code></pre>
  
  <p>Thanks for your help!</p>