Clean code for layout and modifications in dev.rake

This commit is contained in:
chris2tof committed 2011-08-22 13:45:21 +08:00
1 parent e74f2931b1
commit 7a4ad240a8
22 files changed
+226 -159

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
class Admin::SitesController < ApplicationController
layout "admin"
before_filter :authenticate_user!
before_filter :is_admin?
def index
@site = Site.first
redirect_to :action => :new unless @site
end
def new
@site = Site.new
end
end