RailsCasts Pro episodes are now free!

Learn more or hide this

Tom Tang's Profile

GitHub User: tomtang539

Site: www.corkket.com

Comments by Tom Tang

Avatar

Great tutorial. I couldn't get it to work until I changed line 4 in products.js.coffee from

url = $('.pagination .next_page').attr('href')

to

url = $('.pagination .next_page a').attr('href')

otherwise it doesn't pull the href attribute from the link.
Thanks for the tutorial!