From 83e70c2f769c5333ae7c7d1f4cc9ed28a7e0c72a Mon Sep 17 00:00:00 2001 From: LeandroNunes Date: Tue, 24 Jul 2007 16:08:13 +0000 Subject: [PATCH] ActionItem0: adding plugin --- app/controllers/application.rb | 3 ++- app/controllers/edit_template_controller.rb | 9 +++++---- app/controllers/home_controller.rb | 3 ++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/controllers/application.rb b/app/controllers/application.rb index a44589b..f7a3f7f 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -9,9 +9,10 @@ class ApplicationController < ActionController::Base before_filter :detect_stuff_by_domain attr_reader :virtual_community - uses_flexible_template + uses_flexible_template :owner => 'owner' def flexible_template_owner + Profile.find(1) end before_filter :load_template diff --git a/app/controllers/edit_template_controller.rb b/app/controllers/edit_template_controller.rb index eda1ba0..1aa6097 100644 --- a/app/controllers/edit_template_controller.rb +++ b/app/controllers/edit_template_controller.rb @@ -1,9 +1,10 @@ class EditTemplateController < ApplicationController - uses_flexible_template :edit => true +# before_filter :leila + uses_flexible_template :edit => true, :owner => 'owner' - def flexible_template_owner - Profile.find(1) - end +# def leila +# @owner = Profile.find(1) +# end end diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 5950e6c..a9768a7 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -1,7 +1,8 @@ class HomeController < ApplicationController def index -# render :template => 'home/index' end + uses_flexible_template :edit => false, :owner => 'owner' + end -- libgit2 0.21.2