Refactored to DRY up the index/show views and the edit/new views with partials.