form_based_controller.rb

Path: app/controllers/fusioncharts/form_based_controller.rb
Last Update: Sat Nov 22 05:57:04 +0530 2008

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.

[Validate]