Methods added to this helper will be available to all view files for the graph controller.
This method is used to get the name of the partial to be rendered on selecting the Graph from the select box in the Analytics page.
# File app/helpers/graph_helper.rb, line 24 def get_partial(url_type) case url_type when "URL-Calls" partial = 'url_calls_graph' when "Database-Usage" partial = 'database_usage_graph' when "URL-Breakup" partial = 'url_breakup_graph' when "Throughput" partial = 'throughput_graph' when "Resource-Usage" partial='resource_usage_graph_app' end return partial end
Generated with the Darkfish Rdoc Generator 2.