windows - Rails Comments on View if-end statement screw up rendering on Linux/Apache/FastCGI -
The following code works under my Windows development environment, but not on my production Linux / Apache 2 / FastCGI NV.
In my scene File:
& lt; Td id = 'first_column' class = 'column' & gt; & Lt;% content_for: Heading # Do not stop this content: HEAD% & gt; & Lt;% = stylesheet_link_tag ('live_tree')%> & Lt;% = javascript_include_tag "live_tree"%> & Lt;% end # content_for% & gt; & Lt; Div id = 'contentpanel_13B' & gt; & Lt; Div id = 'category_howtos_container' & gt; & Lt;% = Render: Partial = & gt; 'Howtos_for_category'% & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt;% cache ('category_gadget' + I18n.locale.to_s)% & gt; & Lt; Div class = 'main_container gadget' id = 'categories_container' & gt; & Lt;% = Render: Partial = & gt; 'Categories'% & gt; & Lt; / Div & gt; & Lt;% end% & gt; & Lt; / TD & gt; This code div does not render div contentpanel_13b under Linux ... I separated the comment problem on this line:
<% end #% & Gt; Content_for
I tried without success in the Rails 2.3.2 and 2.3.3 ... Any hint?
This comment is preventing '%>' from being parsed
Note Try putting it on your line
& lt;% End # content_for% & gt;
Comments
Post a Comment