Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: schmoboy
$('#products th a, #products .pagination a[href][href!="#"]').live('click',
This prevents attaching a click event to pagination links where href='#'.