We cover:

  • Writing our own views
  • Using layouts to decorate pages
  • Integrating CSS
  • Using helpers
  • Writing functional tests

Chapter 8
Task C: Catalog Display

All in all, it’s been a successful set of iterations. We gathered the initial requirements from our customer, documented a basic flow, worked out a first pass at the data we’ll need, and put together the management page for the Depot application’s products. It hasn’t even taken many lines of code. We even have a small but growing test suite.

Thus emboldened, it’s on to our next task. We chatted about priorities with our customer, and she said she’d like to start seeing what the application looks like from the buyer’s point of view. Our next task is to create a catalog display.

This also makes a lot of sense from our point of view. Once we have the products safely tucked into the database, it should be fairly straightforward to display them. It also gives us a basis from which to develop the shopping cart portion of the code later.

We should also be able to draw on the work we just did in the product management task. The catalog display is really just a glorified product listing.

Finally, we’ll also need to complement our unit tests for the model with some functional tests for the controller.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.21.34.0