开发者

nesting partials in rails

I have created two partials: _listDialog.rhtml开发者_StackOverflow and _list.rhtml.

the listDialog partial has all the code that the list partial contains + additional code for the dialogbox. this results in duplication of code.

how do I solve this? if I include the list partial in the listDialog partial, then we'll have nested partials (a partial inside a partial)

any ideas?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜