Skip to content

Conversation

@ricecakemonster
Copy link

@ricecakemonster ricecakemonster commented Apr 3, 2017

Rails Zoo

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
Describe in your own words the Rails request/response cycle for viewing an animals detail page Browser requests the animal detail -> Route gets GET(HTTP verb) and animal ID from the browser and send show(method) request to animals controller -> Animal controller executes show method(find the info for the animal) and send calculated info to the view file(show.html.erb) -> The view file prepares to display the animal info for the given animal on the browser. -> The browser displays the animal info.
Describe one area of Rails that you gained more clarity on with this assignment what HTTP verb does in route.
Is there a specific piece of code you'd like more feedback on? Displaying images(I used hard coded data... how do you do this using Model?
What is one aspect of this project that surprised you? I tried to code delete function using delete_animal_path and it didn't work at all even my HTTP verb was delete. I had to specify method: :delete

@PilgrimMemoirs
Copy link

Rails Zoo

What We're Looking For

Feature Feedback
Appropriate Git usage with no extraneous files checked in Well Done
Answered comprehension questions Well Done
Naming conventions: controller is plural, model is singular Well Done
Overall
To display an image of a specific animal, you can save the name of the image file (ex: pig.jpg) as a string with the animal's other data. Then you can call that attribute dynamically in the erb file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants