2013年9月24日
摘要: 手把手教你学习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 阅读全文
posted @ 2013-09-24 16:00 soulspirit 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 手把手教你学习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:用于更换名 阅读全文
posted @ 2013-09-24 13:59 soulspirit 阅读(312) 评论(0) 推荐(0) 编辑