20 - documenting your website.rb

来自「O Reilly Ruby Cookbook source code」· RB 代码 · 共 13 行

RB
13
字号
# The FooController controller contains miscellaneous functionality# rejected from other controllers.class FooController < ApplicationController  # The set_random action sets the @random_number instance variable   # to a random number.  def set_random    @random_number = rand*rand  endend#---$ rake appdoc#---

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?