From 00b08aed8dee85b0cee2621b86a99a6009c6e38c Mon Sep 17 00:00:00 2001 From: Kari Bancroft Date: Wed, 18 Oct 2017 13:43:16 -0700 Subject: [PATCH 1/3] remove extraneous route --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index a328ad6..deaef31 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,5 @@ Rails.application.routes.draw do # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html - get "pets", to: "pets#index", as: "pets" - get "pet/:id", to: "pets#show", as: "pet" + # get "pets", to: "pets#index", as: "pets" + resources :pets, only: :index end From 1577f70cbe97fbf781ebf1d6735d0e3fa8321a46 Mon Sep 17 00:00:00 2001 From: Kari Bancroft Date: Wed, 18 Oct 2017 13:43:36 -0700 Subject: [PATCH 2/3] cleanup commented out route --- config/routes.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index deaef31..fde968b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,4 @@ Rails.application.routes.draw do # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html - # get "pets", to: "pets#index", as: "pets" resources :pets, only: :index end From 7e9cb021463aa0abdbfce5ce93210df31ce85b42 Mon Sep 17 00:00:00 2001 From: Kari Bancroft Date: Wed, 18 Oct 2017 14:15:19 -0700 Subject: [PATCH 3/3] add a bit more readme description --- README.md | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 7db80e4..f9893d7 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,4 @@ -# README +# Ada Pets +This repository goes along with the [Creating APIs](https://github.com/Ada-Developers-Academy/textbook-curriculum/blob/master/09-intermediate-rails/creating-apis.md) curriculum. -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... +This repository will be used to track our favorite pets. The `master` branch contains an initial `Pets` controller as well as a `Pet` model. Take a look at these to get you started. There is also one `index` route, and a basic controller implementation for that route.