user roles starts

This commit is contained in:
Matthew K. Fu JuYuan authored and chris committed 2012-11-22 21:10:35 +08:00
1 parent 77386f0284
commit 5b39d10ac6
12 files changed
+13 -12

No files matched your search

+3 -2
View File
@@ -1,10 +1,11 @@
class Admin::RolesController < ApplicationController
layout "admin"
layout "new_admin"
before_filter :authenticate_user!
before_filter :is_admin?
before_filter :set_attribute, :only => [:index, :show, :new, :edit]
helper Admin::AttributeValuesViewHelper
def index
@attributes = Role.all.entries
render :template => 'admin/attributes/index'