Sha256: 9ab4ba98ff14491725003a317808d62b1d2c1acce175f1430b4f58dd3ffd26d5
Contents?: true
Size: 663 Bytes
Versions: 3
Compression:
Stored size: 663 Bytes
Contents
class Cbac::GenericRolesController < ApplicationController # The layout used for all CBAC pages layout "cbac" # GET /index # GET /index.xml def index end # POST /update def update @role = Cbac::GenericRole.find(params[:id]) @role.update_attributes(params[:cbac_generic_role]) redirect_to :action => "index" end # POST /create def create @role = Cbac::GenericRole.new(params[:cbac_generic_role]) @role.save redirect_to :action => "index" end # POST /delete def delete @role = Cbac::GenericRole.find(params[:id]) @role.delete redirect_to :action => "index" end end
Version data entries
3 entries across 3 versions & 1 rubygems