Hi,
I have a form which generates statistics:
form.rhtml --> /my_big_app/stats/generate --> view_results.rhtml
My method ‘generate’ generates an array of statistics @results =
[hash_1,hash_2,etc.] and I want to display graphics with gruff in my
view_results.rhtml page:
@results.each do |result|
generate_graphic(result)
end
My helper generate_graphic simply renders (I can’t use
image_tag since it automatically adds now a .png).
So how can I easily pass my hashes to my graph_controller? I want to
have a params[:stats] = my_hash for the generate_image method but I need
to flatten the hash which is ugly with a whole bunch of data.
Do you have any idea?
–
,========================.
| Pierre-Alexandre M. |
| email : [email protected] |
`========================’