S
Sijo Kg
Hi
I have a while loop as below
while count <= total_ci_id_asso_types do
v = "sd_ci"+"#{count}"
ci_id_asso_type=params[:"#{v}"]
count=count+1
end
for example
puts ci_id_asso_type gives
id45service_desk_ci_association_type_id1
id65service_desk_ci_association_type_id1 etc
What I need is to get
45,1
65,1 (ie two numbers) from above..How can I do that
Thanks in advance
Sijo
I have a while loop as below
while count <= total_ci_id_asso_types do
v = "sd_ci"+"#{count}"
ci_id_asso_type=params[:"#{v}"]
count=count+1
end
for example
puts ci_id_asso_type gives
id45service_desk_ci_association_type_id1
id65service_desk_ci_association_type_id1 etc
What I need is to get
45,1
65,1 (ie two numbers) from above..How can I do that
Thanks in advance
Sijo