From 9c5108ffab6828562c5a976ddb92ac0ec459a9a3 Mon Sep 17 00:00:00 2001 From: hukl Date: Wed, 10 Jun 2009 23:21:39 +0200 Subject: added basic ajax search interface. lots of css / js improvements needed but it seems to work quite okay for now. more on that tomorrow --- config/routes.rb | 3 +-- config/sphinx.yml | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 config/sphinx.yml (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index bf4ba10..7456b60 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,8 +1,6 @@ ActionController::Routing::Routes.draw do |map| map.resources :assets - - map.filter :locale map.root( @@ -19,6 +17,7 @@ ActionController::Routing::Routes.draw do |map| map.resources :nodes, :member => {:publish => :put, :unlock => :put} map.logout '/logout', :controller => 'sessions', :action => 'destroy' map.login '/login', :controller => 'sessions', :action => 'new' + map.admin_search 'admin/search', :controller => 'admin', :action => 'search' map.resources :users map.resource :session diff --git a/config/sphinx.yml b/config/sphinx.yml new file mode 100644 index 0000000..3924be2 --- /dev/null +++ b/config/sphinx.yml @@ -0,0 +1,3 @@ +development: + enable_star: 1 + min_infix_len: 1 \ No newline at end of file -- cgit v1.3