Base structure for rails app