search for: last_category

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

Did you mean: cust_category
2006 Mar 26
4
Updating query results in real time with AJAX
...<div id="new_item"> </div> ====================================================================== Here is the controller: def create @category = Category.new(@params[:category]) if @category.save @new_item = Category.find_by_sql("select max(category) as last_category, id from categories") render_text "<tr><td>" + @new_item[:id] + "</td><td>" + @new_item[:category] + "</td></tr>" else render_action ''new'' end end I''m a complete newbie, any hel...