26 Jul '12, 2am

@tapajos and

class ArticlesController < ApplicationController def show_with_respond_to_block @article = Article.find(params[:id]) # If the request sends headers that differs from the options provided to stale?, then # the request is indeed stale and the respond_to block is triggered (and the options # to the stale? call is set on the response). # # If the request headers match, then the request is fresh and the respond_to block is # not triggered. Instead the default render will occur, which will check the last-modified # and etag headers and conclude that it only needs to send a "304 Not Modified" instead # of rendering the template. if stale?(:last_modified => @article.published_at.utc, :etag => @article) respond_to do |wants| # normal response processing end end end def show_with_implied_render @article = Article.find(params[:id]) # Sets the response headers and checks them against ...

Full article: http://guides.rubyonrails.org/2_2_release_notes.html#comp...

Tweets

@tapajos and

guides.rubyonrails.org 26 Jul '12, 2am

After some versions without an upgrade, Rails 2.3 offers some new features for Rails Engines (Rails applications that can ...

Notes: U.S. Ryder Cup team starting to shape up...

pgatour.com 25 Jul '12, 1pm

Notes: U.S. Ryder Cup team starting to shape up text size Jul. 25, 2012 LYTHAM ST. ANNES, England (AP) -- The U.S. Ryder C...

Notes: Hoffman near special temporary membershi...

pgatour.com 24 Jul '12, 4pm

CHAMPS ON BOTH SIDES OF THE ATLANTIC -- Ernie Els (British Open) and Scott Stallings (True South Classic) added PGA TOUR w...

LG Electronics to release limited edition 'king-size' smart TV: LG Electronics plans to release a limited editio...

LG Electronics to release limited edition 'king...

asiaone.com 21 Jul '12, 3am

The Korea Herald/Asia News Network Saturday, Jul 21, 2012 LG Electronics plans to release a limited edition of its new ult...

Notes: Return to Turnberry; Couples' Open debut: The Champions Tour was idle the week of July 16 and now heads t...

Notes: Return to Turnberry; Couples' Open debut...

pgatour.com 23 Jul '12, 5pm

The Champions Tour was idle the week of July 16 and now heads to Turnberry (Ailsa Course) in Turnberry, Scotland for The S...

New Balance 1600 – 2013 Release #NewBalance

New Balance 1600 – 2013 Release #NewBalance

kicksonfire.com 24 Jul '12, 3am

put up this photo on his Instagram with the caption “Best New Balance GR for 2013″. The New Balance 1600 is constructed fr...

Nike Zoom Rookie "Galaxy" - Release Info

Nike Zoom Rookie "Galaxy" - Release Info

sneakernews.com 23 Jul '12, 11pm

Can it still be considered an All-Star Game sneaker if it releases so long after the fact? Sure there may be no real All-S...

2012 Herculis Monaco, 20 July 2012, results fro...

runblogrun.com 21 Jul '12, 7pm

The near collision of Consesius Kipruoto and Paul Koech reminded me of Haile Gebrselassie in World Junior 10,000m. Dramati...

Air Jordan 7 “Olympic” (Release Reminder) #AirJordans

Air Jordan 7 “Olympic” (Release Reminder) #AirJ...

kicksonfire.com 21 Jul '12, 5am

for a few months now, and the time is approaching, as the shoe will release to Jordan Brand accounts today, July 21st. The...

Intel to release new Thunderbolt chip in 2Q13

Intel to release new Thunderbolt chip in 2Q13

digitimes.com 20 Jul '12, 11am

Intel to release new Thunderbolt chip in 2Q13 Monica Chen, Taipei; Joseph Tsai, DIGITIMES [Friday 20 July 2012] Intel plan...

Air Jordan VII "Olympic" - Release Reminder

Air Jordan VII "Olympic" - Release Reminder

sneakernews.com 20 Jul '12, 11pm

If you’re in the game ‘for the love of sneakers’, then there’s no reason not to cop tomorrow’s release of the Air Jordan V...

Release Reminder: Air Jordan 7 "Olympic"

nicekicks.com 20 Jul '12, 9pm

With the start of the Summer Games in London a week away, Jordan Brand is releasing a sneaker with strong nostalgic ties t...

Blogged! @shiGGaShay's EP release party!

Blogged! @shiGGaShay's EP release party!

noelboyd.com 18 Jul '12, 2pm

I had the honour of hosting Shigga Shay's EP release party last Friday. Held at the Home Club, the launch party was a nice...