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

Queues - Tamiko Terada - rails-zoo #42

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

Conversation

TamikoT
Copy link

@TamikoT TamikoT 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 1. User clicks on link to a specific animal from the main /animals page. This triggers the browser to make a request for the animal/:id page. 2. The request hits the rails router. 3. The router maps the correct controller and action (animals#edit) 4. The edit action retrieves the specific animal data from the model5. The model returns the data for the animal for the controller. 6. The controller passes along the data to the edit view. 7. The view renders the HTML for edit.html which includes a form or the user to edit. 8. Once the user clicks 'submit' the rails router request updates the data through the animals#update controller action.
Describe one area of Rails that you gained more clarity on with this assignment The 'think' sections helped me break down and organize the steps that need to happen with MVC. I have a clearer understanding of what rails router does as a result.
Is there a specific piece of code you'd like more feedback on? Ability to add image URL.
What is one aspect of this project that surprised you? I was surprised by how much easier it was when I stopped to think about things before doing them. Note to self: create a 'think' section for myself before every project step...

@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
You can save the name of the image with the animal's data, have the file with that name saved in the assets folder, then use the attribute of an animal object to load the image name dynamically - with the image view helper.

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