i have a problem with if-else.
I get this error: "uninitialized constant
I want to change the background-color for male and female. So i wrote
this code with if and else.
I think there is a mistake in line 8. How could this work. What do i
have to write?
5: <% for article in @articles %><br />
7: <%= h article.gender %>
8: <%- if (h article.gender = Male) -%>
9: <table style="background-color:#d1e1fa;">
10: <% else %>
11: <table style="background-color:#111111;">
I hope somebody can help me.