Download e-book for iPad: Beginning Ruby on Rails E-Commerce: From Novice to by Jarkko Laine

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

Beginning Ruby on Rails E-Commerce: From Novice to Professional (Volume 0) by Jarkko Laine


by Mark
4.2

Rated 4.77 of 5 – based on 6 votes