title: Unable to load Rails code in Javascript string
body: <p>There is my part of code : </p>
  
  <pre><code>    $("table#table_field_type_users &gt; tbody").append(`
  &lt;tr id='&lt;%= @field_type_user.id%&gt;' class='fields_type_user'&gt;
    &lt;td&gt;&lt;input type='text' name='name_field_type_users' value='&lt;%= j @field_type_user.name %&gt;' class='form-control' id='name_field_type_user'/&gt;&lt;/td&gt;
    &lt;td&gt;&lt;button type='button' name='delete_field_type_users' class='btn btn-danger' id='delete_field_type_users'&gt;-&lt;/button&gt;&lt;/td&gt;
  &lt;/tr&gt;
  `);
  </code></pre>
  
  <p>But when JQuery append the following to the page, it render in plain text :</p>
  
  <pre><code>&lt;tr id="&lt;%= @field_type_user.id%&gt;" class="fields_type_user"&gt;
    &lt;td&gt;&lt;input name="name_field_type_users" value="&lt;%= j @field_type_user.name %&gt;" class="form-control" id="name_field_type_user" type="text"&gt;&lt;/td&gt;
    &lt;td&gt;&lt;button type="button" name="delete_field_type_users" class="btn btn-danger" id="delete_field_type_users"&gt;-&lt;/button&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>EDIT : </p>
  
  <p>The first part of code is the part of an file called create.js that is rendered when the method created successfull... It seems it worked very well before the upgrade to Rails 5 ...</p>
  
  <p>There is the process :</p>
  
  <ol>
  <li>User press a button on page that make a Ajax call to the Create method.</li>
  <li><p>The create method do the job and render with : </p>
  
  <p>format.js</p></li>
  </ol>