I found the specific bug in my code. Truly saying I still did not find
the bug . so I am writing now.
I am looping through database records in my view
<% for blue_widget in @blue_widgets %>
<% if blue_widget.B == 1 and blue_widget.B == 1 %>
..some code
<% if blue_widget.a == 0 and blue.widget == 1 %>
...come code for second condition
<% end %>
<% else %>
..code for rest cases
<% end %>
<% end %>
The question in way all of records do the ELSE condition despite of
fact they should do the first or second IF ?
Is the problem that I can not loop through the arrays in this way?