почему мой javascript загружается для всех моих контроллеров

У меня есть файл user.js, который я хочу загрузить специально для моего пользовательского контроллера, но он также работает на моем контроллере домашней страницы.

приложение.js

//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap-sprockets
//= require RGraph.common.core
//= require RGraph.common.dynamic
//= require RGraph.common.tooltips
//= require RGraph.line
//= require RGraph.bar
//= require RGraph.hprogress
//= require_tree 

приложение.html.erb

<!DOCTYPE html>
<html lang="en">
    <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Testing</title>
    <meta name="description" content="<%= content_for?(:description) ? yield(:description) : "Testing" %>">
    <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
    <%= Gon::Base.render_data %> 
    <%= csrf_meta_tags %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  </head> 

  <body>
    <%= yield %>
  </body>  
</html>

домашняя страница/index.html.erb

<div class="jumbotron">
    <div class="container">
      <h1>Welcome!</h1>
      <p>Register to get started.</p>
      <p>
        <%= link_to 'Register', new_user_registration_path, class: 'btn btn-primary btn-lg' %>
      </p>
    </div>

</div>

person user6500179    schedule 19.09.2016    source источник
comment
user.js загружается в какой-то макет?   -  person BrTkCa    schedule 19.09.2016
comment
нет, я удалил файл навигации и файл сообщений, но user.js все еще загружается   -  person user6500179    schedule 19.09.2016
comment
Возможный дубликат таблиц стилей Rails CSS, перекрывающих друг друга   -  person MarsAtomic    schedule 20.09.2016