content.rhtml
来自「用ruby on rails写的一个博客程序,还不错..ruby on rail」· RHTML 代码 · 共 11 行
RHTML
11 行
<h3 class='sidebar-title'><%= class_name %></h3><div class='<%= file_name.sub(/_sidebar/, '') %>'-body><p>Replace this text with the real sidebar view code</p><p>You should be able to access <code>request</code>, <code>controller</code>, <code>params</code> etc, as well as local variables set from the sidebar settings. So if you've done <code>setting :title, 'Whatever'</code>, you can use <%= title %> to get at its value. The current sidebar object is accessible as <code>sidebar</code>.</p></div>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?