Homework for 8A

Review

Topics Covered: Rails basics: MVC, Routes

Checkpoint

Complete the following checkpoint (enter your full name and the passcode: iXperience2015)  

Exercise

Note: All exercises must live inside of your session0202_exercises/firstname_lastname/d8 folder

While inside of your session0202_exercises directory, you can git add . then git commit -m "Helpful commit message here" and git push origin master to submit your homework to GitHub. (Don't forget to use git status along the way to check the state of your files in git)

Rails Navigation with the Treasure Hunt App

We need to clone the treasure_hunt repository. In your terminal, navigate to your d8 folder and paste the following code:

git clone https://github.com/nax3t/treasure_hunt.git

Now cd into the treasure_hunt folder and navigate through it in sublime (subl .) to complete the assignment.

Grab your treasure map! Navigate through this app and answer the questions below:

Submit your answers to GitHub as a markdown file inside of your d8 folder

  1. How many routes does this project have? (rake routes will not work for those of you who don't have postgres installed yet)
  2. How many models?
  3. How many controllers?
  4. Where does the CRUD logic take place?
  5. Which view allows us to create a new treasure?
  6. Which view allows us to comment on an existing treasure?
  7. Which view is our home page?
  8. Which view lists all the treasures?
  9. Which attributes belong to treasures? And comments?
  10. Which file displays the attributes for each model?

The working app can be viewed live here

Great work! Now add and commit your work then push it to GitHub :)