fix Directory structure and init rails app and page format fix