Review
Complete Exit Ticket: http://ix-exit-tickets.herokuapp.com/
Topics Covered: Rails basics: MVC, Routes
Exercise
Rails Navigation with the Treasure Hunt App
We need to clone the treasure_hunt
repository. In your terminal, navigate to your ixperience
folder (outside of the s0203_exercises
directory) 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 inside of s0203_exercises/firstname_lastname
- How many routes does this project have? (rake routes will not work for those of you who don't have postgres installed yet)
- How many models?
- How many controllers?
- Where does the CRUD logic take place?
- Which view allows us to create a new treasure?
- Which view allows us to comment on an existing treasure?
- Which view is our home page?
- Which view lists all the treasures?
- Which attributes belong to treasures? And comments?
- 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 :)