def show_pie_graph
@mode = params[:mode]
render :layout => false
end
The ‘render’ method uses the current state of the controller at the time
it
is called to setup the view. At that time, @mode is not yet set, so
that is
what the view sees.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.