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. diff --git a/config/routes.rb b/config/routes.rb index a328ad6..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" - get "pet/:id", to: "pets#show", as: "pet" + resources :pets, only: :index end