diff options
| author | hukl <contact@smyck.org> | 2009-02-19 22:40:27 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-02-19 22:40:27 +0100 |
| commit | 111829573d1c048d4c4c4e4d98b114eba9c28196 (patch) | |
| tree | 6f9d40764b0fd5a0587827f373db167be13f9ac2 /app/controllers/admin_controller.rb | |
| parent | 632b3a03d732ae735b2efd1999e14c649bf35b77 (diff) | |
adding the admin controller and his friends
Diffstat (limited to 'app/controllers/admin_controller.rb')
| -rw-r--r-- | app/controllers/admin_controller.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb new file mode 100644 index 0000000..e672e3b --- /dev/null +++ b/app/controllers/admin_controller.rb | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | class AdminController < ApplicationController | ||
| 2 | |||
| 3 | def index | ||
| 4 | end | ||
| 5 | |||
| 6 | def switch_locale | ||
| 7 | I18n.locale = params[:id].to_sym | ||
| 8 | |||
| 9 | render :controller => 'nodes', :action => 'index' | ||
| 10 | end | ||
| 11 | |||
| 12 | end | ||
