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 Dave-2 wrote:
> 
> 
> This is the URL that I tried to open:/deals/graph_code
> ...
> *my controller code looks like this:*
> def index
>     @graph = open_flash_chart_object( 600, 300, "/deals/graph_code" )
>     @deals = Deal.find(:all)
> 
>     respond_to do |format|
>       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
Sent from the RubyOnRails Users mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to