anchor.diff:            );
           }
         <%end%>
  -    } else {
  +    } else if (roomStatus === "inactive") {
          <% @rooms.each do |room| %>
            if (!<%= room.active %>) {
               $(".show_room").append(
  
positive.code:   <% 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;
  
      if (bool) {
        <% @rooms.each do |room| %>
          if (<%= room.active %>) {
            $(".show_room").append(
  
negative.code:     $('select#building_id').find('option').removeClass('hide');
      $('select#building_id').find('option').not('option[data-wing="' + selected + '"]').addClass('hide');
    });
  </script>
  