added rails best practices