Chapter 9. Transforming data in your browser

This chapter covers

  • Creating and editing items in the browser
  • Creating new Phoenix routes, controllers, views, and templates
  • Using Phoenix’s form-builder helpers to create HTML forms

You can create, edit, and delete auction items and persist the changes in a real database, but you currently have no way to use those functions in the browser. What you need are HTML forms that enable users of your site to do those things—you certainly aren’t giving them access to your IEx console.

In this chapter, you’ll create those forms. As you do so, you’ll touch almost every part of the route that data takes on its way through Phoenix—from the router to the template (we discussed that route in chapter 3).

Get Phoenix in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.