user roles starts

This commit is contained in:
Matthew K. Fu JuYuan committed 2012-11-22 18:20:11 +08:00
1 parent 6dff83339a
commit cc7907f37a
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'