Getting ready for rails integration