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 - Sahana Murthy - Rails Zoo #24

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

Conversation

sahanamurthy
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 The GET method sends an HTTP request from the computer. The route file in the rails app uses this HTTP request word to help direct the request. It looks at the URI pattern /animals/:id and sends it to the controller. The controller refers to the route within the file, which in this case reads get 'animals/:id', to: 'animals#show', as: 'animal' and runs the show method in the animals controller (the actual data is received after the controller speaks to the model and gets the data associated with the animal of a particular id). The controller then speaks with the view and returns the show.html.erb file to the browser.
Describe one area of Rails that you gained more clarity on with this assignment I learned a little more about routes and how they interact with one another.
Is there a specific piece of code you'd like more feedback on? I would like to learn how to call upon pictures in the assets file within the rails app. I wasn't able to figure that out.
What is one aspect of this project that surprised you? It surprised me how much of this seemed pretty routine, in that we used methods that we had practiced with a couple of assignments already. I guess I can expect those particular methods to show up often.

@PilgrimMemoirs
Copy link

Rails Zoo

What We're Looking For

Feature Feedback
Appropriate Git usage with no extraneous files checked in More commits
Answered comprehension questions Well Done
Naming conventions: controller is plural, model is singular Well Done
Overall Here's a resource on having an image show up in your HTML: http://stackoverflow.com/questions/1814736/add-image-to-layout-in-ruby-on-rails

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