anchor.diff:                    :update_text => "current_resource_text_#{field}",
                     :callback => "resource_changed_#{field}",
                     :field => [f.object_name.gsub(/\]\[|[^-a-zA-Z0-9:.]/, '_').sub(/_$/, ''), field].join('_'),
  -                  :current_link => "#{resource.url if resource.present?}",
  +                  :current_link => "#{resource.url if resource}",
                     :height => 480,
                     :conditions => conditions
                   })
  
positive.code: <%
    conditions ||= nil
    insert_text = %Q{<span id="no_resource_selected_#{field}" class="nothing_selected" #{'style="display: none;"'.html_safe if resource.present?}>
                     #{t('.no_resource_selected')}
                   </span>}.html_safe
    insert_link = refinery.insert_admin_resources_path({
  
negative.code:       });
      });
    </script>
  <% end %>
  