Rails framework and structure