P
Prabhas Gupte
I am writing an eruby script (rhtml). Depending on value of a particular
variable, I display number of input boxes.
If that param is not passed, I am setting variable to some value.
It works fine for first time. But when I click on the link, used to
increase input fields, I get ArgumentError even if the variable is set
to proper value.
Here is the code snippet:
-------------------------------------------------
:::
unless cgi.params['numdomains'].empty? then
$numdomains = cgi.params['numdomains']
else
$numdomains = 3
end
:::::
for dcnt in 0...$numdomains
# code to disply input items
end
:::
variable, I display number of input boxes.
If that param is not passed, I am setting variable to some value.
It works fine for first time. But when I click on the link, used to
increase input fields, I get ArgumentError even if the variable is set
to proper value.
Here is the code snippet:
-------------------------------------------------
:::
unless cgi.params['numdomains'].empty? then
$numdomains = cgi.params['numdomains']
else
$numdomains = 3
end
:::::
for dcnt in 0...$numdomains
# code to disply input items
end
:::