如果字符是操作数,将它添加到结果字符串。
If the character is an operand, append it to the result string.
字符串格式操作涉及处理FormatString、寻找格式定义序列和使用这些序列对右边的操作数中的相关数据应用格式。
The string format operation involves the processing of the FormatString, looking for format specification sequences, and using these sequences to format the associated data from the right operand.
raw操作数是Rails 3中新增的功能。与以前版本的Rails不同,默认情况下所有的字符串都可以(去掉了HTML)安全发送。
The raw operator is new to Rails 3. Counter to previous releases of Rails, all strings are emitted safe, stripped of HTML, by default.
应用推荐