hi guys,
In my rails rhtml page I have several check box named as param0,
param1…param9.
in my controller method I want to obtain the value by a loop.
I have generated the name of the post values
by this code:
@total=Array.new
count=0
while count< 10
param_me=‘param’+count.to_s
#@total << params[:param_me]
@total << val_index
count=count+1
end
I want to store the values in the array: @total
In the comment line how can i place the param_me which will work as the
following line:
@total << params[:param0]
@total << params[:param1]
.
.
.
@total << params[:param9]
please take a hand in my code
ichikawa