How: varibale as the parameter in params[]

hi guys,

In my rails rhtml page I have several check box named as param0,

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:
while count< 10
#@total << params[:param_me]
@total << val_index

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


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs