diff options
-rw-r--r-- | app/controllers/general_controller.rb | 9 | ||||
-rw-r--r-- | config/routes.rb | 3 |
2 files changed, 2 insertions, 10 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb index 7dc8389e5..3ef29f149 100644 --- a/app/controllers/general_controller.rb +++ b/app/controllers/general_controller.rb @@ -5,17 +5,10 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: general_controller.rb,v 1.40 2008-09-08 01:58:55 francis Exp $ +# $Id: general_controller.rb,v 1.41 2008-09-08 02:00:17 francis Exp $ class GeneralController < ApplicationController - # Fancy javascript smancy for auto complete search on front page - def auto_complete_for_public_body_query - @public_bodies = public_body_query(params[:public_body][:query]) - - render :partial => "public_body_query" - end - # New, improved front page! def new_frontpage # This is too slow diff --git a/config/routes.rb b/config/routes.rb index 4f8de5fe5..e5a258a79 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: routes.rb,v 1.71 2008-09-08 01:58:55 francis Exp $ +# $Id: routes.rb,v 1.72 2008-09-08 02:00:24 francis Exp $ ActionController::Routing::Routes.draw do |map| @@ -16,7 +16,6 @@ ActionController::Routing::Routes.draw do |map| map.with_options :controller => 'general' do |general| general.new_frontpage '/', :action => 'new_frontpage' - general.auto_complete_for_public_body_query 'auto_complete_for_public_body_query', :action => 'auto_complete_for_public_body_query' general.search_redirect '/search', :action => 'search_redirect' # XXX combined is the search query, and then if sorted a "/newest" at the end. |