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