Skip to content

jthluke/sp16-hw4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring 2016 Homework 4

Overall Spec

The overall thing that needs to be accomplished is:

  • Create a dog model that stores name and age
  • Validate the dog has a name and age
  • Going to "/dogs" will go to an index view of all the dogs in the database
  • Going to "/dogs/1" will go to a show view of the dog with id 1. This should work for any arbitrary id.
  • Going to "/dogs/new" will go to a working form that will allow me to create a dog and redirect me to the new dogs show view

Getting Started

To start everything off, fork this repository - there should be a fork button on the top right corner of the repo. Fork the repository to your own!

Run this command to clone this repository after you fork:

git clone https://github.com/your_username/sp16-hw4

Afterwards, change directory into the folder and run

rails server

Notes

  • There is the annotated code of how to do the same process for creating all this functionality for a user. The only difference is there is an integer (the dogs age) involved. TRY not the reference the annotated code until you try it first, it'll make the experience more challenging.

-The specs are general because you will find that when making an app, implementation details are not given, but rather you will have a general idea of the final result and you have to figure out the implementation.

Submitting

Run the following commands in your repo

git add .
git commit -am "I'M DONE"

And submit the link to your repo through the rails decal website.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 72.5%
  • HTML 20.8%
  • CSS 3.3%
  • JavaScript 2.1%
  • CoffeeScript 1.3%