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

The Controller

In this chapter, we focus on building the controllers, views, and templates. Though Phoenix has generators that could generate much of a simple web app from scratch, we’re going to build part of it by hand so we can appreciate how the parts fit together. Before we fire up the generators, let’s talk about how the controller hangs together.

Our application will be called rumbl. When we’re all done, the application will allow us to take videos (hosted elsewhere) and attach comments to them in real time and play them back alongside the comments of other users. Think of it as Mystery Science Theater 3000 meets Twitter: At scale, this application will be tremendously demanding because each user will record and play back comments that ...

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