Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rails Zoo
Congratulations! You're submitting your assignment!
Comprehension Questions
*Browser: Hey there, router, could you please GET animals/:id ?
*Router: (I am not really sure if the router says anything to the browser. Please advise.)
...Hello, animals controller, could you please show me the page for animal :id, and by that I
clearly mean animals#show
*Controller: Sure thing (I don't think the controller actually says this.) .
...Subordinate model, retrieve animal id from the database (you know, Animal.find(params[:id])
*Model: here is the information for animal id
*Controller: stores information in instance variable
...Hi, view animals/:id , I have information for animal :id, but I don't know how to display it. What
should I do?
*View: OK, controller, here is how you should display this information speaks a bunch of html
*Controller: (To self) That view talks like a cave man. I will add some introductory paragraphs so ...that the browser can understand these directions.
*Controller: Hello browser, remember that one time when you asked me to #GET animal/:id? I got the information from Controller and the display template from view. I also made it extra easy to ...understand for you.
...Now all you have to do is POST animals/:id
*Browser: Done! It looks like there is nothing else to do.
Then the Browser, the Controller, the View, and the Model all high five. (This doesn't really happen, but it makes for a more satisfying script.)
| Describe one area of Rails that you gained more clarity on with this assignment |
Which HTTP: verbs are being used (since I had a bazillion errors with POST requests) |
| Is there a specific piece of code you'd like more feedback on? |
No. But I would like to know if I got the first question here right. |
| What is one aspect of this project that surprised you?|
Getting an image from the Internet is harder than I thought it would be . Google api is really, really hard to figure out because so much of it is deprecated. |