http://github.com/korin/open_flash_chart_2_plugin/downloads
or checkout newest code from repository:
# in console # go to plugins directory, if you are windows user replace cd with dir command cd vendor/plugins # clone git repo to open_flash_chart_2 directory git clone git://github.com/korin/open_flash_chart_2_plugin.git open_flash_chart_2
Remember to copy javascript and swf file from vendor/plugins/open_flash_chart_2/requirements to app public directory, you can use rake task:
# install rake open_flash_chart_2:install # uninstall rake open_flash_chart_2:uninstall # reinstall rake open_flash_chart_2:reinstall
See Charts section for examples. Read also README file from plugin directory for configuration and code example.
If you use rails older that 2.3, you will need json gem.
# just install as gem, windows users don't need sudo command sudo gem install json
#require it in enviroment config.gem 'json'
If You use rails older that 2.3 you have to uncomment to_json method.
Lines 17-19 in vendor/plugins/open_flash_chart_2/lib/open_flasch_chart_2.rb file.
Grab sample application (this project site).
Download any project tag from github site (as a zip file):
http://github.com/korin/open_flash_chart_2/downloads
or checkout newest code from repository:
# in console # go to directory where you want create sample application # if you are windows user replace cd with dir command cd directory_path # clone git repo git clone git://github.com/korin/open_flash_chart_2.git # initializ submodules git submodule update --init # copy files from plugin_directory/requirements # use rake task rake open_flash_chart_2:reinstall
Application is using haml.
# just install as gem, windows users don't need sudo command sudo gem install haml