Load data from database > open-flash-chart

Hi,

I use the plugin open-flash-chart

http://pullmonkey.com/2008/1/4/open-flash-chart-plugin-for-ruby-on-rails-1-9-6-release.

The data of my swf is fetched from my controller

def y_right
g.set_data([46,28,33,48,54,49,34,40,36,43,56,55,57,49,38,35,36,62,44,59,40,55,27,37,47])
end

Question:

How can i fil in the g.set_data from a database-table/column?

Grtz…remco

The data of my swf is fetched from my controller

def y_right
g.set_data([46,28,33,48,54,49,34,40,36,43,56,55,57,49,38,35,36,62,44,59,40,­55,27,37,47])
end

Question:

How can i fil in the g.set_data from a database-table/column?

Your question is how to obtain an array of numbers from a database? I
recommend reading an Active Record tutorial, or the Active Record
section of a good Rails book.