阅读背景:

是否可以在模型内部使用rails image_tag ?

来源:互联网 

I have a rails 3.x application that has model classes which return content to a view partial to be rendered on a page. The model takes care of what the content is and just returns it to the view which blindly adds it to the page. In other words, the view calls the model asking for its content; the model delivers its content HTML-Safe to the view; and the view just dumps what is returned into into its output.I have a rails 3.x application that has model c




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

分享到: