Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Nami-Doc's Profile

GitHub User: Nami-Doc

Comments by

Avatar

It's actually slower (Sizzle uses document.getElementById when you do $('#..'), actually). Your solution is a good idea when you have multiple links, but just having one makes the id a better approach.

Very nice episode !