_show_resources.rhtml
来自「用ruby on rails写的一个博客程序,还不错..ruby on rail」· RHTML 代码 · 共 10 行
RHTML
10 行
<h4><%= _("Currently this article has the following resources")%></h4> <% for resource in @article.resources %> <%= link_to_remote "- #{resource.filename}", :url => { :action => "resource_remove", :id => @article.id, :resource_id => resource.id}, :update => 'resources' %><br/> <% end %> <h4><%= _("You can associate the following resources")%></h4> <% for resource in @resources - @article.resources %> <%= link_to_remote "+ #{resource.filename}", :url => { :action => "resource_add", :id => @article.id, :resource_id => resource.id}, :update => 'resources' %><br/> <% end %>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?