Forum: Typo Precondition Failed Errors

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Kyle H. (Guest)
on 2006-03-04 03:50
(Received via mailing list)
I am all of a sudden getting the following error when attempting to add
edit an article:

Precondition Failed

The precondition on the request for the URL /admin/content/edit/81
to false.

This is running revision 875 from the trunk. The only change I made
(last night) was to change the way articles are being cached. This was
in an
effort to get a rotating banner image working.

This does not happen locally when I run the site via Webrick but is
happening in production mode via lighttpd on Textdrive.

I wouldn't think the caching change I made would cause this, as the
appears to be in admin/content, not articles.

My articles controller looks like this now:

class ArticlesController < ApplicationController
  before_filter :verify_config
  before_filter :check_page_query_param_for_missing_routes
  layout :theme_layout

  cache_sweeper :blog_sweeper

  cached_pages = [:index, :read, :permalink, :category, :find_by_date,
:archives, :view_page, :tag]

  #caches_action_with_params *cached_pages
  caches_action_with_params :read
  session :off, :only => cached_pages


  def read
  	response.lifetime = 3600 # 1 hour


Why is this happening and what can I do to stop it?

Kyle H.
This topic is locked and can not be replied to.