I have a list box whose values i am getting from controller class.
There is a submit button below it.when it is pressed, i always loose
the value which was selected and once again the first value is
displayed. I have made the use of “selected” but everytime i want the
last value to be displayed in list box that was selected once the
submit button is pressed.
the concern rhtml code is :<% for supplier in @suppliers %> <%= supplier %> <% end %>
Any help would really be appreciated
thanks a lot,