Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alena's RailsZoo #28

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Alena's RailsZoo #28

wants to merge 14 commits into from

Conversation

Spatterjaaay
Copy link

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 On the home page the user clicks on the name or picture of an animal. The browser sends an http request (the request has two parts, it contains the method GET and the path). Rails compares the request to each of the routes until it finds a match, then it locates the method in the controller whose name matches the name in the route. The method, in this case show, is executed. The argument ID is passed to the find method, which retrieves the corresponding Animal object from the database and assigns it to a variable. Rails looks for a template whose name matches the action name and renders it, using the object from the controller. The rendered page is then sent to the controller, that sends it to the browser.
Describe one area of Rails that you gained more clarity on with this assignment I definitely gained more clarity on how routes work and how different parts of rails are connected. I have also realized how much we have learned and how much I need to repeat all the steps, because at the beginning of this project I have already forgotten how to create the model. :)
Is there a specific piece of code you'd like more feedback on? Not a specific part.
What is one aspect of this project that surprised you? That with practice I was able to write the app quicker than I thought. Also trying to do any styling can get very complicated very quickly.

@kariabancroft
Copy link

Rails Zoo

What We're Looking For

Feature Feedback
Appropriate Git usage with no extraneous files checked in Yes - though the .DS_Store file is checked in so add this to your .gitignore next time
Answered comprehension questions Yes. Glad you got some more practice with this one!
Naming conventions: controller is plural, model is singular Yes
Overall Nice job!

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