Created new models for describing countries, cities, and places I have visited and want to write about
1 to Many relationship between Country and City, and City and Place and adding files that were forgotten in last commit
- Replaced County views with slim (from ERB).
- Fixing test controllers.
- Foreign key relationship (City, Places, PlaceTypes, Locations) do not allow nulls.
- Changed city view files from erb to slim.
- Fixing controller tests
Country and City controller fixes
Changed ERB files to slim. More bug fixes.
Polymorphic controller associations for Country, City, Place to Location.
- Locations view files have been changed from ERB to slim.
- Bug fixes
- PlaceType views: Changed from ERB to slim.
- Added the place_types controller to the routing.
Fixed city model test
Bug fixes for the locations sub-controllers.
- View files are generated in the slim template when using Rails generators.
- Destinations controller for displaying all the places for all cities for all countries.
- Countries, cities, and places display the wikipedia url for that locale.
Adding files
Bug fixes in the cities migration file and in the routing file.
Creating seed data for countries/cities/places/locations
seeds.rb: delete existing locations
- Schema migration files create PlaceType rows.
- Change the look of the Place#show page.
- Allow all users to view the Destination#index, Country#index, Country#show, City#index, City#show, Place#index, Place#show pages.
- Changes to the seeds rake script to display better output messages.
- Location coordinates are expressed with the floats Latitude and Longitude.
- Place#show page shows the locations with a Google Map.
- Location object now has the field province and the virtual field full_address, which is a composite of address, city, province, postal_code, and country
- Added breadcrumbs to Country#show and City#show
- Moved the locations template generator to its own partial template so it could be shared between Country#show, City#show, and Place#show
Fixed controller tests. Changed Location.coordinates to be Location.latitude and Location.longitude.