Sha256: 8e1f61ba70340affcd1f499fc6f03c2df26c912720878c8639e171e334c31332
Contents?: true
Size: 433 Bytes
Versions: 11
Compression:
Stored size: 433 Bytes
Contents
module Alchemy class ElementsController < Alchemy::BaseController filter_access_to [:show], :attribute_check => true layout false # Returns the element partial as HTML or as JavaScript that tries to replace a given +container_id+ with the partial content via jQuery. def show @element = Element.find(params[:id]) @page = @element.page respond_to do |format| format.html format.js end end end end
Version data entries
11 entries across 11 versions & 1 rubygems