From: Brian Candler Date: 2009-04-25T04:05:17+09:00 Subject: Re: Sinatra : size of variable '@data' ? Bug ? B. Randy wrote: > Why I can't the data in REMOTE mode ? Firstly, look at the HTML in both cases. Use 'view source' or equivalent in both browsers; and/or save the HTML from each browser to a file and then compare the files. If the files are different, then you need to work out why your application is sending different data to different clients. But if the files are identical, then my suspicion is that you are generating invalid (X)HTML - and therefore one of the browsers is processing it differently to the other. For example, you might have mismatched start and end tags in your template. Or it might be that one of your select options contains a HTML special character, since you're not escaping them. That is, <%= @start_choice => should really be <%=h @start_choice %> Similarly, your html_select helper should be escaping the options in the array. I'd use the tool xmllint under Linux to check for well-formedness. There are probably other options for Windows. At worst you can upload the content to an online checker service, or you can parse it in Ruby using REXML::Document From your posting subject line, I'm not sure what is the @data that you're talking about, but as for "bug?" - yes, it probably is a bug in your code. Good luck, Brian. -- Posted via http://www.ruby-forum.com/.