Ruby on rails integration