Cloning Internet Applications with Ruby
上QQ阅读APP看书,第一时间看更新

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: “The many-to-many association can be defined with the has n and belongs_to methods.”

A block of code is set as follows:

after :create, :create_wall 
def create_wall 
self.wall = Wall.create 
self.save 
end

Any command-line input or output is written as follows:

$ sudo gem install Haml

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: “The one big difference is of course, the list of statuses belongs to only that user, and there is a big follow button for the viewing user to follow him.”

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.