array_example_controller.rb

Path: app/controllers/fusioncharts/array_example_controller.rb
Last Update: Sat Nov 22 05:39:40 +0530 2008

This controller class will show ways of generating chart by

  • using sales data of products with their names present in an array.
  • using sales data of products for current year and previous year with their names present in an array.
  • using sales figure and quantity sold in each quarter of a year of a product present in an array.
  • using sales information of two products in each quarter of a year present in an array .

All the views related to this controller will use the "common" layout. As per Ruby On Rails conventions, we have the corresponding views with the same name as the function name in the controller.

[Validate]