search for: generate_js_code_from_point

Displaying 1 result from an estimated 1 matches for "generate_js_code_from_point".

2006 Sep 12
2
Generate JS from RoR - strange delay with send_data
...own follows 29 seconds ! Am I doing something wrong? My action looks like (I''ve removed real JS since it is not problem with generation of JS only with sending): def show_route Point.find(:all, :conditions => [ "route_id = ?", pid]).each {|x| output_data<< GENERATE_JS_CODE_FROM_POINTS } send_data(output_data, :content => "text/javascript") end I''m using Rails 1.1.6. Or maybe there is some other way to generate ''custom'' JS not in .rhtml? Best regards, Witold Rugowski http://nhw.pl/ -- Posted via http://www.ruby-forum.com/. -...