ruby on rails - If else not working because it contains end within -


I have a helper that has a simple and closed switch I know I have to do this work because it is on other pages However, it will not work on this particular page .. I think because if it is within a end , then if it is finished otherwise the code is here:

I believe this part is working:

  & lt;% if popup == "off"% & gt; & Lt;% content_for: main% & gt; & Lt;% end% & gt;   

This part is not so much:

  & lt;% if popup == "off"%> & Lt;% end% & gt; & Lt; & Lt; This end should be displayed if popup = closed & lt;% end% & gt;    

You can do this:

  Lt; % If Popup == "Off"% & gt; & Lt;% = "& lt;% end% & gt; & Gt%; & Lt; & Lt; This end should be displayed if popup = closed & lt;% end% & gt;   

Or try this:

  & lt;% if popup == "off"%> & Amp; Lt;% end% & amp; Gt; & Lt; & Lt; This end should be displayed if popup = closed & lt;% end% & gt;    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -