   flash_types = options.flash_types if 'flash_types' of options
   push_state_enabled = options.push_state_enabled if 'push_state_enabled' of options
   active = options.active if 'active' of options
+  content_container = options.content_container if if 'content_container' of options
   correct_url() unless $('meta[name="ajaxify:dont_correct_url"]').length > 0
   scroll_to_top = options.scroll_to_top if 'scroll_to_top' of options
-
-  if 'content_container' of options
-    original_content_container = content_container = options.content_container
 
 
 ajaxify = ->


  title = ajaxify_content.data('page-title')
  flashes = ajaxify_content.data('flashes')
  content_container = ajaxify_content.data('container') || content_container

  $("##{content_container}").html response.html()

  # Correct the url after a redirect and when it has the ajaxify param in it.
  # The latter can happen e.g. for pagination links that are auto generated.


  $(document).trigger 'ajaxify:content_inserted'

  $("##{container} #ajaxify_content").remove()

  if title
    document.title = title.replace /&amp;/, '&'   # Todo: need to figure out what else needs to be unescaped

  show_flashes(flashes)

  $(document).trigger('ajaxify:content_loaded', [data, status, jqXHR, options.url])

