If you have been working through the Hartl tutorial, you probably already have added at least one image to your individual project website. But if you have managed to avoid the cute kitty so far, it is time to step back and think about what image(s) could enhance your site’s appearance or provide an important piece of information.
What you want to include is up to you, but make sure that you add at least one image to your website and that it is stored in the app/assets/images directory. If nothing else, add the Rails logo and display it somewhere on your website (the About page would be appropriate).
- Hartl sections 5.1 & 5.2
- The Asset Pipeline at Edge Guides
What to Do
- Add an image or two, as appropriate, to your website. Remember to put it in the app/assets/images directory.
- Show your image on a page (or more) using the image_tag
- Don’t forget to include the alt information for the visually impaired user!
What to Hand In
- Answer the following questions:
- What assets did you add to the website? How do they enhance your site?
- What is the general look and feel you are trying to create on your site? Is it professional? Fun and easy-going? What images can you select to help set that tone?
- Similar to prior homework assignments, submit a document that contains links to your GitHub repo (showing a new commit with “HW12” as part of the commit message
- In the same document, include the link to the Heroku app.
Scoring Rubric (10 Points)
- One or more images are included in the site
- The images have a purpose on the site and relate to text or other content on the page
- Explains what images were added and why
- Explains the desired look and feel of the site and how can images help create that
- The location of images is in app/assets/images directory
- Images are shown on the html.erb page using the image_tag
- Every image includes alt tags
- The current code is on GitHub
- The app can be accessed on Heroku or other hosting site
- The site is looking like a professional site that could be shown as a part of a portfolio