O'Reilly logo

Programming Phoenix by Jose Valim, Bruce Tate, Chris McCord

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Wrapping Up

We packed a ton into this chapter. Let’s summarize what you’ve done:

  • We created a simple repository. We did so to simplify your plunge into the world of controllers and views.

  • We created actions, which serve as the main point of control for each request.

  • We created views, which exist to render templates.

  • We created templates, which generate HTML for our users.

  • We employed helpers, which are simple Phoenix functions used in templates.

  • We used layouts, which are HTML templates that embed an action’s HTML.

In the next chapter, we’re going to replace our homegrown repository with a database-backed one using Ecto. By the time we’re done, we’ll be reading our users from the database and entering new users with forms.

Don’t stop now! Things ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required