anchor.diff:    <% end %>
   
   <script>
  -  var active;
  -  var bool;
  -
     $("input:radio").on('click', function() {
       $(".show_room").empty();
  -    active = $(this).attr("value");
  -    if (active == "ativa")
  -      bool = true;
  -    else
  -      bool = false;
  +    var roomStatus = $(this).attr("value");
   
  -    if (bool) {
  +    if (roomStatus === "active") {
         <% @rooms.each do |room| %>
           if (<%= room.active %>) {
             $(".show_room").append(
  
positive.code:     $('select#building_id').find('option').removeClass('hide');
      $('select#building_id').find('option').not('option[data-wing="' + selected + '"]').addClass('hide');
    });
  
  
  
  </script>
  
negative.code:           );
          }
        <%end%>
      } else if (roomStatus === "inactive") {
         <% @rooms.each do |room| %>
           if (!<%= room.active %>) {
              $(".show_room").append(
  