阅读背景:

我为什么要使用content_tag而不是“regular”html?

来源:互联网 

I know that there is an option to use the content_tag function in ruby-on-rails, which helps to generate an html tag. Some rails developers in a company I work with told me that this is the "convenient and proper" way and I should not write a "native" html in order to generate a div for example... Is it true? Is it a kind of rails standard? Does it have something to do with performance issues or render speed?I know that there is an option to use the conte




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: