B
B. Randy
Hi,
I'm working under Windows XP and ruby 1.8.6 patch 227.
My application display a 'SELECT' HTML to let choose
a number. The list of number must be build : extracted
from a database. I've also other 'SELECT'
There is no problem in LOCAL (Ruby + Firefox in the
same PC) but the list of number can't be displayed
in REMOTE mode then other shorter lists are displayed
in the SELECT.
I've tried Webrick and Mongrel, there is no difference.
Three SELECT are build, only one can't be seen. There
are 234 line of option and 3120 bytes. The length of
two others are : 4539 and 450 bytes, there is no
problem with them.
The difference and the first and two other is the
number of lines.
Below my code.
Why I can't the data in REMOTE mode ?
Thanks.
Randy
########################################################
# HTML code used with 'erb'
<SELECT name="start" >
<OPTION > </OPTION>
<%= @start_choice =>
</SELECT>
########################################################
########################################################
# My 'helpers'
helpers do
# Build the HTML code from an array of option for
#'SELECT'.
def html_select(array)
option=String.new()
array.each {|opt| option << "<OPTION>#{opt}</OPTION>"}
option
end
end
########################################################
I'm working under Windows XP and ruby 1.8.6 patch 227.
My application display a 'SELECT' HTML to let choose
a number. The list of number must be build : extracted
from a database. I've also other 'SELECT'
There is no problem in LOCAL (Ruby + Firefox in the
same PC) but the list of number can't be displayed
in REMOTE mode then other shorter lists are displayed
in the SELECT.
I've tried Webrick and Mongrel, there is no difference.
Three SELECT are build, only one can't be seen. There
are 234 line of option and 3120 bytes. The length of
two others are : 4539 and 450 bytes, there is no
problem with them.
The difference and the first and two other is the
number of lines.
Below my code.
Why I can't the data in REMOTE mode ?
Thanks.
Randy
########################################################
# HTML code used with 'erb'
<SELECT name="start" >
<OPTION > </OPTION>
<%= @start_choice =>
</SELECT>
########################################################
########################################################
# My 'helpers'
helpers do
# Build the HTML code from an array of option for
#'SELECT'.
def html_select(array)
option=String.new()
array.each {|opt| option << "<OPTION>#{opt}</OPTION>"}
option
end
end
########################################################