Infinite Scroll implementation in Ruby on Rails