<%= javascript_tag do %>
  var data = data || {};
  data.categories = <%= Category.to_json %>;
  $(".show-here").text(window.data.categories);
<% end %>

<% content_for :title, "New Order" %>
<% content_for :content_size, "col-md-10" %>

<% content_for :content do %>
  <table id="new-order-table" class="table table-hover table-striped">
    <thead>
      <tr>
        <th>Category</th>
        <th>Item</th>
        <th>Quantity</th>
      </tr>
    </thead>

    <tbody>
      <%# will be populated dynamically from orders.coffee %>
    </tbody>
  </table>
  <div>
    <button id="add-item-row" type="button" class="btn btn-default btn-sm">
      <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Add Item
    </button>
  </div>
<% end %>

<% content_for :title, "New Order" %>
<% content_for :content_size, "col-md-10" %>

<% content_for :content do %>
  <%= javascript_tag do %>
    var data = data || {};
    data.categories = <%= Category.to_json %>;
    $(".show-here").text(window.data.categories);
  <% end %>

  <table id="new-order-table" class="table table-hover table-striped">
    <thead>
      <tr>
        <th>Category</th>
        <th>Item</th>
        <th>Quantity</th>
      </tr>
    </thead>

    <tbody>
      <%# will be populated dynamically from orders.coffee %>
    </tbody>
  </table>
  <div>
    <button id="add-item-row" type="button" class="btn btn-default btn-sm">
      <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Add Item
    </button>
  </div>
<% end %>

Move javascript_tag into the content block so it is included in the resulting HTML
Move javascript_tag into the content block so it is included in the resulting HTML
