From 111829573d1c048d4c4c4e4d98b114eba9c28196 Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 19 Feb 2009 22:40:27 +0100 Subject: adding the admin controller and his friends --- app/controllers/admin_controller.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 app/controllers/admin_controller.rb (limited to 'app/controllers/admin_controller.rb') 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 @@ +class AdminController < ApplicationController + + def index + end + + def switch_locale + I18n.locale = params[:id].to_sym + + render :controller => 'nodes', :action => 'index' + end + +end -- cgit v1.3