19 Feb '12, 5am

send_file (ActionController::Streaming) - APIdock:

Also be aware that the document may be cached by proxies and browsers. The Pragma and Cache-Control headers declare how the file may be cached by intermediaries. They default to require clients to validate with the server before releasing cached responses. See http://www.mnot.net/cache_docs/ for an overview of web caching and http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9 for the Cache-Control header spec.

Full article: http://apidock.com/rails/ActionController/Streaming/send_...

Tweets

cattr_accessor (Class) - APIdock:

apidock.com 19 Feb '12, 7pm

when a value hasn’t explicitly been set yet on the new class instance. If you’d like to have inheritance without messing w...

to_param (ActiveRecord::Base) - APIdock:

apidock.com 01 Mar '12, 10am

This method is deprecated or moved on the latest stable version. The last existing version (v3.1.0) is shown here. These s...

Struct - More Examples #ruby

apidock.com 12 Feb '12, 6pm

A Struct is a convenient way to bundle a number of attributes together, using accessor methods, without having to write an...