I have a a helper that contains a simple on and off switch. I know I have it working because it s working on other pages. However, on this particular page it won t work.. I think its because theres an end
within the if else, so it ends the if else early. Here s the code:
我认为这一部分正在发挥作用:
<% if popup == "off" %>
<% content_for :main do %>
<% end %>
This part not so much:
<% if popup == "off" %>
<% end %> << this end should be displayed if popup = off
<% end %>