finished integrating with rails CRUD