This example combines the ERb-style substitutions with the primitive Ruby string substitutions provided with simple strings.
本例将ERb方式的替换与提供简单字符串的基本Ruby字符串替换结合了起来。
The view strategy in Rails is to create a simple string and then make some substitutions.
Rails中的视图策略是:创建一个简单字符串,然后做一些替换。
With the second puts statement (puts stands for put string), Ruby processes two substitutions.
在第二个puts语句中(puts代表putstring),Ruby处理了两次替换。
With the second puts statement (puts stands for put string), Ruby processes two substitutions.
在第二个puts语句中(puts代表putstring),Ruby处理了两次替换。
应用推荐