search for: sql_select_graph

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

2008 Apr 08
0
Help building view to pass query to controller
...ues the code will run and result to display. I think I am going to be dealing with form_tags adn I have attemped this way but with no luck. I hope I explained this correctly as again I am a programming newbie. Thanks in advanced for any input. Model: class Health < ActiveRecord::Base def self.sql_select_graph(hostname, start_time, end_time) connection.execute("set @c = 0") find_by_sql("select *, @c FROM healths WHERE router_hostname = ''#{hostname}'' AND created_at >= ''#{start_time}'' AND created_at <= ''#{ end_time}'' HAVING (@c:...