摘要:
视频:https://gorails.com/episodes/form-objects-design-pattern?autoplay=1 git代码 :https://github.com/gorails-screencasts/gorails-episode-179/blob/master/a 阅读全文
摘要:
视频:https://gorails.com/episodes/decorators-from-scratch?autoplay=1 装饰设置风格:把Model层变的干净,但不使用app/helper。model层只保留scope, has_many等等。 方法:把view中的和数据库关联的逻辑移动 阅读全文