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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---