Displaying 10 results from an estimated 10 matches for "httpdate".
Did you mean:
httpd_t
2005 Dec 26
0
Interesting differences between Windows and Linux
I have some controller code that uses the ''httpdate'' method of a
''created_on'' field from my database. I''m running Rails on the Edge. My
development environment is Windows XP, my ''production'' environment is
Debian Linux.
When I upgraded my ''production'' machine for the first...
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,...
2007 Nov 20
9
Timestamping in log file?
Hi,
I''m wondering if it''s easy to add timestamps to the mongrel log? I am
having a problem where an externally spawned application by Rails is
failing. Mongrel kindly logs the error message returned by this
application when it fails. But it doesn''t record a timestamp as to when
the error occurs, which makes it a little tricky to sync this up to my
webserver logs to
2006 May 18
0
SOLVED: Re: How to debug the rendering in Rails?
...gt;
> 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.httpdate unless @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...
2012 Sep 04
0
Add expire header for images stored in amazon s3
Hello everyone Good Morning,
I done adding expire header by put the following code into my product
model.
:s3_headers => { ''Cache-Control'' => ''max-age=315576000'', ''Expires'' =>
10.years.from_now.httpdate },
But its work only while i add new product and image.
Already i have 100 of products and images. How can i add expire header
for those which already exist products.
Please advice.
Regards
Saravanan P
--
You received this message because you are subscribed to the Google Groups "Ruby...
2006 Jan 20
1
Time From String
Is there any Ruby / Rails way to take a string and convert it to time?
timefstr
Specificallc,y I''d like to convert iso 8601 fromats to Ruby Time objects
or ActiveRecord time fields.
--
Posted via http://www.ruby-forum.com/.
2012 Sep 13
10
access key error
I am getting following error while run my rails app in my server
ActionView::Template::Error (You did not provide both required access keys.
Please provide the access_key_id and the secret_access_key.):
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2010 Aug 09
5
Paperclip - Amazon S3 - https
I am able to use Paperclip to save files to Amazon''s S3 storage. Once
saved, the files are available using a URL associated with the bucket
and filename.
I have not been able to find a good tutorial which clearly explains
how to save a file to S3 (using Paperclip) whereby it can only be
retrieved using https, and only for a limited time period (which I
understand is a function of S3).
2007 Sep 18
10
Routes
hi all,
I want to move some routing tasks out of the router and into the
controller. The goal is to make Merb feel less like mod_rewrite and
give the user more control at the controller. The new Router is
simple: it takes the path_info (not the whole request) then outputs a
controller class and some parameters from the path matching. The rest
of the routing would be done at the controller level.
2007 Dec 25
30
Review of Code for 1.9
Hello Guys,
I''m reviewing the code for 1.9, and forgot about this when we first
spoke on this subject.
The current way we stop threads is using Thread#raise to spread
StopServer exception, which will not work as expected in 1.9.
1.9 will treat raised exceptions as #kill, like JRuby does, so the
worker threads will not finish serving the client and _then_ exiting,
but will be