Hi, i have a problem with if-else. I get this error: "uninitialized constant ActionView::Base::CompiledTemplates::Male"
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 /> 6: <table> 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. Thanks Mark -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.