5th
Mon
merb_componentプラグインを作りました
MerbのコントローラをParts的に利用するプラグイン
merb_compo
使い方
githubからgenki-merbconfig/dep
の中で、以下のように記述します。
1 dependency"genki-merb _component ", :require_as => "merb_compo nent"
あとは、Viewの中から以下のような感じで呼び出せばOKです
1 <%= component Users, :show, :id => 1 %>
merb_parts
posted by
genki
on Mon 5 Jan 2009
at 06:28