search for: make_pie_graph

Displaying 1 result from an estimated 1 matches for "make_pie_graph".

2006 Jan 30
3
params on controller and view
...uot;, :update => ''pie_graph_div'', :url => { :action => :show_pie_graph, :mode => ''nums'' }) %> which calls *show_pie_graph*: Controller: def show_pie_graph render :layout => false @mode = params[:mode] end View: <img src="/surveys/make_pie_graph/<%=@mode%>" /> But @mode on view always is nil. I can see the :mode from the view by calling params[:mode] but not from the controller. What''s the problem? Did I misunderstand something? Thanks in advance, - H