摘要:
手把手教你学习ROR-3.asset的那些事1 What is asset pipeline?Asset pipeline is the whole process of how Rails handle with css,javascript and image...2 How to use asset pipeline?A enable/disable asset pipelineThe asset pipeline is a core feature pf Rails.So you can just use it.And you also can disabled it.It can b 阅读全文
摘要:
手把手教你学习ROR-2.View中的locals,as,object,layout以及FormHelperhttp://api.rubyonrails.org/classes/ActionView/PartialRenderer.html1 locals,objects,as在partial中的使用locals:In a template for Advertise#accoutthat means:render “advertiser/_account.html.erb” with @buyer passed in as the local variable accountas:用于更换名 阅读全文