fixed some more rails best practices recommendations