Sha256: c740948ca4395f6b03e5f453c0c1ea129d565dfb0a8901f20b7e698196610eca
Contents?: true
Size: 661 Bytes
Versions: 1
Compression:
Stored size: 661 Bytes
Contents
require_dependency "flms/application_controller" module Flms class LayersController < ApplicationController layout 'flms/admin' before_filter :authenticate_user! before_filter :load_page before_filter :load_block before_filter :load_layer, only: [:show, :edit, :update, :destroy] def destroy @layer.destroy redirect_to page_block_path(@page, @block), notice: 'Layer deleted' end private def load_page @page = Page.find_by_url params[:page_id] end def load_block @block = Block.find params[:block_id] end def load_layer @layer = Layer.find params[:id] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flms-0.0.3 | app/controllers/flms/layers_controller.rb |