diff options
| author | hukl <contact@smyck.org> | 2009-10-19 23:57:25 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-19 23:57:25 +0200 |
| commit | 53d5b59744f43a94756190631a46fd58779b5fb9 (patch) | |
| tree | b28431e1348b4890b459be05cecb6613f3891319 /app/controllers | |
| parent | cb914e420c3f95b5f8e31a73ea19b7e53e4aa6c4 (diff) | |
changes for giving root a title
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/admin_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index 0446387..57f0d77 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb | |||
| @@ -35,7 +35,11 @@ class AdminController < ApplicationController | |||
| 35 | end | 35 | end |
| 36 | 36 | ||
| 37 | def menu_search | 37 | def menu_search |
| 38 | @results = Node.search params[:search_term] | 38 | if params[:search_term] == "Root" |
| 39 | @results = [Node.root] | ||
| 40 | else | ||
| 41 | @results = Node.search params[:search_term] | ||
| 42 | end | ||
| 39 | 43 | ||
| 40 | respond_to do |format| | 44 | respond_to do |format| |
| 41 | format.html do | 45 | format.html do |
