Download PDF by Chamond Liu: Smalltalk, Objects and Design

Listing 1-2 shows a very minimalist layout, which is enough for the proof of concept. rhtml. Listing 1-2. fm Page 25 Monday, October 16, 2006 5:30 PM CHAPTER 1 ■ PROJECT SETUP AND PROOF OF CONCEPT The layout contains four Ruby expressions that are all evaluated when the page is rendered. The first expression will allow us to set the page title by defining an instance variable in our controllers: <%= @page_title || 'Emporium' %> The default title, “Emporium,” is used if we don’t specify the @page_title variable in the controller.

Download PDF sample

Smalltalk, Objects and Design by Chamond Liu


by Charles
4.3

Rated 4.30 of 5 – based on 9 votes