last part of rails integration method 1.  not working.  author emailed.