Displaying 1 result from an estimated 1 matches for "pie_graph_div".
2006 Jan 30
3
params on controller and view
Hi,
I have a link that says:
<%= link_to_remote("Data", :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%>" />...