Ruby on Rails implementation of ineetu js app