search for: httpdateunless

Displaying 1 result from an estimated 1 matches for "httpdateunless".

2006 May 18
2
How to debug the rendering in Rails?
...e some controller code like this: def mailing_lists @ml = MailingList.find_by_identifier(@params[:id]) @messages = @ml.messages @headers["Content-Type"] = "application/atom+xml" @response.headers[''Last-Modified''] = @messages.last.created_on.httpdateunless @ messages.empty? minTime = Time.rfc2822(@request.env["HTTP_IF_MODIFIED_SINCE"]) rescue nil if minTime and @messages.first.created_on <= minTime render :text => ''Not Modified'', :status => 304 end end This works fine in development, but no...