Rebuilt Rails app structure