News for hackers. Stuff that matters.
Re:Stop Googling by steveklabnik on Thursday October 14, 2010 @10:18AM (#1790945)
Ruby code usually has the rdoc-style comments right above the method definition, and not all of those explanations make it to the README...

I did this yesterday. The README of Authlogic doesn't cover using a single access token to log in without a username or password, but the comments in the code does:

http://github.com/binarylogic/authlogic/blob/master/lib/auth...

Okay, check out Params:

http://github.com/binarylogic/authlogic/blob/1ba948eca149b9b...

Awesome!

Re:Stop Googling by drags on Friday October 15, 2010 @01:20AM (#1793755)
Love authlogic; it's such a well-constructed library. Just the other day I borrowed the method they use for getting access to controller functionality like cookies and params. It's the sort of thing I've always done by passing the controller object to the method that needs it, but the authlogic way is just so much cleaner: http://github.com/binarylogic/authlogic/blob/master/lib/auth...