随笔-167  评论-65  文章-0  trackbacks-0
假如我们的框架是topframe,leftframe,mainframe的
1,我们知道这个框架一共有四个页面,例如为all.rhtml,left.rhtml,top.rhtml,main.rhtml

2,把all.rhtml放在rails的layouts下

3,把all.rhtml的src要这样写

<frameset rows="80,*" cols="*" frameborder="yes" border="1" framespacing="1" bordercolor="#666666">
<frame src="/message/top" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
<frameset rows="*" cols="160,*" framespacing="0" frameborder="yes" border="1" bordercolor="#666666">
<frame src="/message/left" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" />
<frame src="/message/main" name="mainFrame" id="mainFrame" />
</frameset>
</frameset>

src="/message/left"就对应着views下message下的left.rhtml

4,把left.rhtml,top.rhtml,main.rhtml都放在views的message下(对应的action是message_controller.rb)下

link:
http://lists.rubyonrails.org/pipermail/rails/2006-June/045371.html





write by feng
posted on 2009-03-13 19:20 fl1429 阅读(637) 评论(0)  编辑  收藏 所属分类: Rails

只有注册用户登录后才能发表评论。


网站导航:
 
已访问数:
free counters