Path: | app/controllers/fusioncharts/form_based_controller.rb |
Last Update: | Thu Mar 19 09:35:48 +0530 2009 |
This controller demonstrates the generation of pie-chart by using the values from a form. Only the chart.html.erb view related to the chart action uses the "common" layout. Here, we have given a simple example, where the form fields do not belong to any database In real-world, you would have fields corresponding to the fields of some Model.