Skip to content

Commit

Permalink
Merge pull request AdaGold#5 from AdaGold/kab/c8
Browse files Browse the repository at this point in the history
Kab/c8
  • Loading branch information
kariabancroft authored Oct 18, 2017
2 parents 66a5991 + 7e9cb02 commit e5bc7c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 25 deletions.
26 changes: 3 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 1 addition & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e5bc7c2

Please sign in to comment.