官术网_书友最值得收藏!

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, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "To use Rails 4.0.0 with Heroku, we need to add the rails_12factor gem to the Gemfile so that we can precompile our assets."

A block of code is set as follows:

    def obscure_string(string, count)
        return string if count.blank?
        substring = string.slice(0..(-1 * count - 1))
        return string.gsub(substring, "*" * substring.length)
    end

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

resources :products do
 collection do
 get 'import'
 end
  resources :variants
end

Commands that need to be entered at the terminal / shell window are set as follows:

gem install rails -v 4.0.0 --no-ri --no-rdoc

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: "You should see a Welcome aboard page that lists out some helpful tips as well as information about the application's configuration as shown in the following screenshot:".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 韶山市| 根河市| 尼木县| 平南县| 云龙县| 哈巴河县| 芒康县| 灵宝市| 西乌珠穆沁旗| 江阴市| 明光市| 敖汉旗| 金川县| 武城县| 平阳县| 都兰县| 德格县| 即墨市| 科尔| 秭归县| 大城县| 宁陕县| 通许县| 绥德县| 乌兰浩特市| 永清县| 张北县| 桃源县| 乐都县| 乌拉特中旗| 蒙阴县| 屏山县| 广宗县| 扶余县| 德清县| 闸北区| 阿克| 昌黎县| 五原县| 定州市| 台东县|