From: "acnakada@..." Date: 2010-01-27T18:08:59+09:00 Subject: [ruby-list:46819] open_flash_chart IO ERROR open_flash_chat(OFC2)を試してみるが 「IO ERROR」が出て上手くいきません。 ご教授お願いします。 開発環境 windows XP Ruby1.8.6-p287 rails 2.2.2 WEBrick UTF-8 プロジェクトgraph [controller] class SampleController < ApplicationController def index @graph = open_flash_chart_object(600,300, 'sample/bar_chart') end def bar_chart title = Title.new("MY TITLE") bar = BarGlass.new bar.set_values([1,2,3,4,5,6,7,8,9]) chart = OpenFlashChart.new chart.set_title(title) chart.add_element(bar) render :text => chart.to_s end end [view index.html.erb] <%= javascript_include_tag "swfobject.js" %>

Open_flash_chart version2

<%= @graph %> 開発マシンではグラフが表示されました。 専用サーバーにアップして試してみるとエラー プロジェクトgraphは /webapps/sfa.ac77.jp/ にアップ /webapps/sfa.ac77.jp/public/graph(シンボリックリンク) /webapps/sfa.ac77.jp/public/open_flash_chart.swf 専用サーバーの環境 sentos5 ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux] rails 2.2.2 apache2 + passenger (RailsBaseURI /graph) http://sfa.ac77.jp/graphを見に行くと Open Flash Chart IO ERROR Loading test data Error #2032 This is the URL that I tried to open:sample/bar_chart となり、グラフが表示されません。 宜しくお願いします。