Sha256: a5e1ce8228238273f5ed9a14dfcf498b3833fe4a980d423cb96a5a1056b42f5f

Contents?: true

Size: 416 Bytes

Versions: 13

Compression:

Stored size: 416 Bytes

Contents

class ElementsController < AlchemyController
  
  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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
alchemy_cms-2.0.7 app/controllers/elements_controller.rb
alchemy_cms-2.0.6.1 app/controllers/elements_controller.rb
alchemy_cms-2.0.5 app/controllers/elements_controller.rb
alchemy_cms-2.0.4 app/controllers/elements_controller.rb
alchemy_cms-2.0.3.1 app/controllers/elements_controller.rb
alchemy_cms-2.1.beta1 app/controllers/elements_controller.rb
alchemy_cms-2.0.3 app/controllers/elements_controller.rb
alchemy_cms-2.0.2 app/controllers/elements_controller.rb
alchemy_cms-2.0.1 app/controllers/elements_controller.rb
alchemy_cms-2.0 app/controllers/elements_controller.rb
alchemy_cms-2.0.rc6 app/controllers/elements_controller.rb
alchemy_cms-2.0.rc5 app/controllers/elements_controller.rb
alchemy_cms-2.0.rc4 app/controllers/elements_controller.rb