【发布时间】:2009-10-17 16:36:42
【问题描述】:
以下代码可以在我的 Windows 开发环境下工作,但不能在我的生产 Linux/Apache2/FastCGI 环境下工作。
在我看来 rhtml 文件:
<td id='first_column' class='column'>
<% content_for :head do #DO NOT CACHE THIS content for : HEAD %>
<%= stylesheet_link_tag('live_tree') %>
<%= javascript_include_tag "live_tree" %>
<% end #content_for %>
<div id='contentpanel_13B'>
<div id='category_howtos_container'>
<%= render :partial => 'howtos_for_category'%>
</div>
</div>
<% cache('category_gadget'+I18n.locale.to_s) do %>
<div class='main_container gadget' id='categories_container'>
<%= render :partial => 'categories' %>
</div>
<% end %>
</td>
这段代码在linux下没有渲染div contentpanel_13B...我将问题隔离到这一行的评论:
<% end #content_for %>
我在 Rails 2.3.2 和 2.3.3 下尝试过,但没有成功……有什么提示吗?
【问题讨论】:
标签: ruby-on-rails windows linux apache2 comments