Comments on: Open Flash Chart II Plugin for Ruby on Rails (OFC2) http://pullmonkey.com/2008/07/23/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2/ Sat, 04 Aug 2012 15:13:03 +0000 hourly 1 https://wordpress.org/?v=5.6 By: charlie http://pullmonkey.com/2008/07/23/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2/comment-page-6/#comment-19007 Sat, 04 Aug 2012 15:13:03 +0000 /2008/07/28/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2#comment-19007 Asantoya – This example is over 4 years old 🙂 A lot has changed with rails. The old way to start the webrick server was to use ./script/server, it’s now rails s.

How do you have the plugin installed and are you using the latest from github? Need to make sure the init.rb file is being run.

]]>
By: Asantoya http://pullmonkey.com/2008/07/23/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2/comment-page-6/#comment-19004 Wed, 01 Aug 2012 15:32:45 +0000 /2008/07/28/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2#comment-19004 also I got this error undefined method `open_flash_chart_object’

]]>
By: Asantoya http://pullmonkey.com/2008/07/23/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2/comment-page-6/#comment-19003 Wed, 01 Aug 2012 15:16:32 +0000 /2008/07/28/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2#comment-19003 I haven`t the /public/directory/script/server how I can do it?

]]>
By: Zara http://pullmonkey.com/2008/07/23/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2/comment-page-6/#comment-18923 Thu, 17 May 2012 16:21:56 +0000 /2008/07/28/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2#comment-18923 Thanks for plug in.
I’m getting the same error as Jeremy and David got.

swfobject.embedSWF(“/open-flash-chart.swf”, “flash_content_JGR046at”, “600”, “300”, “9.0.0”, “expressInstall.swf”,{“data-file”:”%2Fdashboard%2Fgraph_code”});

Can not figure it out why?
any help in highly appreciated.

]]>
By: Eli http://pullmonkey.com/2008/07/23/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2/comment-page-6/#comment-18922 Thu, 17 May 2012 15:42:31 +0000 /2008/07/28/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2#comment-18922 Sorry, I realized the code is not appeared!
here is the code in the controller:

— class DashboardController chart.to_s
— end

–end

and here is the code in the view :

role:

]]>
By: Eli http://pullmonkey.com/2008/07/23/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2/comment-page-6/#comment-18921 Thu, 17 May 2012 15:36:34 +0000 /2008/07/28/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2#comment-18921 Hi,
Thank you for the great post.
I’m new to ROR. I need to provide a dashboard for a project. I installed the plug in and provide a controller named “dashboard”. here is the code in the controller:
==========Code in the Controller==========================
class DashboardController chart.to_s
end
end
==============================================

here is the code in the view which is named “dashboard_visits.html”:

========== Code in view page “dashboard_visits.html”==============

role:

=====================================================
but in the webpage I’m getting this line without any chart!!!

dashboard_visits

role: ALFP staff

swfobject.embedSWF(“/open-flash-chart.swf”, “flash_content_bQv0Ai8x”, “600”, “300”, “9.0.0”, “expressInstall.swf”,{“data-file”:”%2Fdashboard%2Fgraph_code”});

would you please help me to fix it!
any help is highly appreciated.

eli.

]]>
By: RichieRich http://pullmonkey.com/2008/07/23/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2/comment-page-6/#comment-18729 Tue, 20 Dec 2011 15:31:26 +0000 /2008/07/28/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2#comment-18729 Ok my bad thanks for the reply, should really have seen that big box with the warning in it

]]>
By: charlie http://pullmonkey.com/2008/07/23/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2/comment-page-6/#comment-18728 Tue, 20 Dec 2011 15:23:45 +0000 /2008/07/28/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2#comment-18728 In reply to RichieRich.

The link you provided is an OFC version 1 example:
http://pullmonkey.com/projects/open_flash_chart/view_source_code/one

For 2.0 examples, start here:
http://pullmonkey.com/projects/open_flash_chart2/

]]>
By: RichieRich http://pullmonkey.com/2008/07/23/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2/comment-page-6/#comment-18727 Tue, 20 Dec 2011 11:27:26 +0000 /2008/07/28/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2#comment-18727 Hi, Thanks for the plugin.

I managed to get the barchart example working. But i cannot seem to get any of the other examples working.

http://pullmonkey.com/projects/open_flash_chart/view_source_code/one

I dont have a massive knowledge of RoR, the error message im on the page that is meant to be displaying the json.

uninitialized constant Graph

Which is assume is the controller not being able to find the function. What would i do to correct this?

]]>
By: CJ Gregory http://pullmonkey.com/2008/07/23/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2/comment-page-6/#comment-18561 Tue, 13 Sep 2011 20:28:34 +0000 /2008/07/28/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2#comment-18561 I am also seeing the error that both Jeremy and David are getting.

I believe its because in Rails 3, the strings are HTML encoded by default. So, I change the line in the view from:

to

Well, this only parially works as the url parameter in open_flash_chart_object() is encoded as well. I’ve tried to get around it using raw, but to no avail.

Anyone figure this out?

]]>