diff options
| author | hukl <contact@smyck.org> | 2009-06-13 15:42:13 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-06-13 15:42:13 +0200 |
| commit | edd450502f74dcbe8175dfddee8b50d14424a390 (patch) | |
| tree | c5b8c1b9b4ba57151cc72a6235e10807916ddeb4 /app/controllers/nodes_controller.rb | |
| parent | 4b60f3637c63c40f7b542bcb89cc48f0a6315e0b (diff) | |
added js search widget with clickable results that will take the user to the brand new "show" version of the page. so the user doesn't create new revisions and locks all the time when he / she only wants to take a look at it.
Diffstat (limited to 'app/controllers/nodes_controller.rb')
| -rw-r--r-- | app/controllers/nodes_controller.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index 1c7278c..09d0c52 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb | |||
| @@ -40,14 +40,6 @@ class NodesController < ApplicationController | |||
| 40 | 40 | ||
| 41 | def show | 41 | def show |
| 42 | @page = Node.find(params[:id]).pages.last | 42 | @page = Node.find(params[:id]).pages.last |
| 43 | |||
| 44 | if @page | ||
| 45 | template = @page.valid_template | ||
| 46 | render( | ||
| 47 | :file => template, | ||
| 48 | :layout => "application" | ||
| 49 | ) | ||
| 50 | end | ||
| 51 | end | 43 | end |
| 52 | 44 | ||
| 53 | def edit | 45 | def edit |
