adding rails best practices