# Re: OpenFlash Chart not able to load the flash

**URL:** <https://www.ruby-forum.com/t/re-openflash-chart-not-able-to-load-the-flash/162260>\
**Category:** Rails\
**Created:** [March 7, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/re-openflash-chart-not-able-to-load-the-flash/162260 "2009-03-07T18:02:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rainer54](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9fc348/32.png) [@rainer54](https://www.ruby-forum.com/u/rainer54)\
**Post date:** [March 7, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/re-openflash-chart-not-able-to-load-the-flash/162260/1 "2009-03-07T18:02:12Z")

</div>

Had a similar issue, solution was to place the “call” for the chart into  
the  
view:

\<%= javascript\_include\_tag “swfobject.js” %\>  
\<% chart\_action = “/flash\_charts/#{@offer.id}/price\_quantity\_chart” %\>  
\<% @graph = open\_flash\_chart\_object(500,400, chart\_action, true) %\>  
\<%= @graph %\>

cheers, rainer

Sahil D.-2 wrote:

> ```
> format.html # index.html.erb
> format.xml { render :xml => @deals }
> end
> 
> ```
> 
> end

–  
View this message in context:  
[http://www.nabble.com/OpenFlash-Chart-not-able-to-load-the-flash-tp22385274p22387361.html](http://www.nabble.com/OpenFlash-Chart-not-able-to-load-the-flash-tp22385274p22387361.html)  
Sent from the RubyOnRails Users mailing list archive at [Nabble.com](http://Nabble.com).
