```
<% @players.each do |player| %>
<% if rad_win == true %>
<% @mywin = "Radiant Win" %>
<% puts "1111111" %>
<% elsif rad_win == false %>
<% @mywin = "Radiant Loss" %>
<% puts "222222" %>
<% else %>
<% @mywin = "Loss" %>
<% end %>
<% end %>
```
In my test.html.erb I have the following code. I can see that rad_win is false,but that code block is not executed. i.e there is no "22222222"
Aucun commentaire:
Enregistrer un commentaire