anchor.diff:  # Include routes helpers
   <% environment.context_class.instance_eval { include Rails.application.routes.url_helpers } %>
  +
  +all_items = JSON.parse('<%= raw Item.order(:name).select(:name).to_json %>')
   
   items_by_category = JSON.parse(
     '<%= raw Category.order(:name).map { |category|
  
positive.code: Append all items from the given category to the items picker.
  ###
  append_items_by_category = (category_id) ->
    items_by_category[category_id].forEach (item) ->
      $('#items').append create_button(item.name)
  
  ###
  
negative.code:     # We're already displaying all items
      return
    clear_items()
    append_items all_items
    activate btn
    return
  
  