05 Apr '13, 8pm

Going on ~5 years of Rails and still finding stuff I had no idea existed.

MessageVerifier makes it easy to generate and verify messages which are signed to prevent tampering. This is useful for cases like remember-me tokens and auto-unsubscribe links where the session store isn’t suitable or available. Remember Me: cookies[:remember_me] = @verifier.generate([@user.id, 2.weeks.from_now]) In the authentication filter: id, time = @verifier.verify(cookies[:remember_me]) if time < Time.now self.current_user = User.find(id) end By default it uses Marshal to serialize the message. If you want to use another serialization method, you can set the serializer attribute to something that responds to dump and load, e.g.:

Full article: http://api.rubyonrails.org/classes/ActiveSupport/MessageV...

Tweets

5 years of via @zite

5 years of via @zite

starbucksmelody.com 05 Apr '13, 7am

Even though Starbucks has become a big company – and I think especially since when I came back – I wanted to kind of reign...

EVENING READ: Why Steve Prefontaine still matters

runnersworld.com 02 Apr '13, 1am

The grandstand at Marshfield High School is nearly empty, but it seems like everyone in Coos Bay, Oregon, is on the track....

What’s Going On With The Top Three Domain Sales Of 2013

What’s Going On With The Top Three Domain Sales...

morganlinton.com 06 Apr '13, 5pm

2013 has yet to see a reported sale north of $375,000 which doesn’t mean there hasn’t been sales above this range, it just...

Check out @NickEsquer's feature "The Write Stuff" (featuring me!) in @HoustonModLux Magazine's #MensIssue this month!

Check out @NickEsquer's feature "The Write Stuf...

modernluxury.com 01 Apr '13, 6pm

Tweet The Write Stuff Nick Esquer | Photo: Laurie Perez | April 1, 2013 Step into the ring with three of H-Town’s pretties...

Climate models for past 15 years proved extreme...

treehugger.com 03 Apr '13, 4pm

Modelling's power confirmed, again Modelling complex systems, such as our planet's global climate, isn't about predicting ...

McIlroy still sees big picture, making progress and enjoying game more now:

McIlroy still sees big picture, making progress...

pga.com 03 Apr '13, 5am

-- When the scrutiny becomes suffocating, it's a good time for Rory McIlroy to get as far away as he can. So he went to a ...

Flared gusset bags still going strong, not going away

Flared gusset bags still going strong, not goin...

purseblog.com 02 Apr '13, 4pm

If this post seems like deja vu, you’re not entirely wrong. Over seven months ago, we wrote about how the flared gusset , ...

Twenty years on, corporate sustainability still lacking

Twenty years on, corporate sustainability still...

greenbiz.com 03 Apr '13, 2pm

After 20 years of rating c orporate sustainability efforts, German-based oekom research has found that global giants have ...

.@USArmy Chief Warrant Officer 5 Jeanne Y. Pace has served for 41 years, & she’s still going strong.

.@USArmy Chief Warrant Officer 5 Jeanne Y. Pace...

defense.gov 28 Mar '13, 3pm

Face of Defense: Music Goes On for Last WAC Still Serving By Army Sgt. William Begley 11th Public Affairs Detachment FORT ...

“Securing the Rails session secret – Phusion Co...

blog.phusion.nl 01 Apr '13, 2am

Omit the secret key from version control, but auto-generate a non-random key if missing. Instead of generating a random ke...

This Sweatshirt is Guaranteed to Last 10 Years

This Sweatshirt is Guaranteed to Last 10 Years

earth911.com 04 Apr '13, 1pm

Brooklyn-based clothing label Flint and Tinder has designed a sweatshirt built to last a lifetime– or at least 10 years. T...

America's Sub-4:00 Fraternity, the quest to Bre...

runblogrun.com 03 Apr '13, 1am

America's Sub-4:00 Fraternity The Quest To "Break Four" Still Inspires March 30, 2013 The 4:00 mile -- there is something ...

For Singapore Y Combinator entrant Padlet, 5 years was worth the wait

For Singapore Y Combinator entrant Padlet, 5 ye...

sgentrepreneurs.com 26 Mar '13, 12am

For Singapore Y Combinator entrant Padlet, 5 years was worth the wait March 26, 2013 by Terence LEE Disclosure: SGE co-fou...

We have done Zam Zam, Victory next time? @SGVeknz @asksirstamford

We have done Zam Zam, Victory next time? @SGVek...

ieatishootipost.sg 01 Apr '13, 11am

Murtabak is one just one of those dishes that never fails to excite. From the theatrics of the flipping the dough to the b...

Teardown: Cell-phone charger: nice idea done right: Back in November 2012, EDN Brand Director Patrick Mannion

Teardown: Cell-phone charger: nice idea done ri...

edn.com 01 Apr '13, 4am

Back in November 2012, EDN Brand Director Patrick Mannion published a teardown of a cell-phone battery charger . The desig...