Sha256: a3d107e31826490606e53039cbd41f196ba74c04796582e533374cc87ebb81cc

Contents?: true

Size: 414 Bytes

Versions: 4

Compression:

Stored size: 414 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

4 entries across 4 versions & 1 rubygems

Version Path
alchemy_cms-2.0.rc3 app/controllers/elements_controller.rb
alchemy_cms-2.0.rc2 app/controllers/elements_controller.rb
alchemy_cms-2.0.rc1 app/controllers/elements_controller.rb
alchemy_cms-2.0.pre5 app/controllers/elements_controller.rb