阅读背景:

Rails:为视图创建变量的更好方法

来源:互联网 

I am totally new to Ruby, and Rails. Currently, I am using helper methods. How can I write the same code as this in my Model 'User' so as to access all these variables from controller and view?I am totally new to Ruby, and Rails. Currently,




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

分享到: