Class: Alchemy::ElementsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/alchemy/elements_controller.rb

Instance Method Summary collapse

Methods included from Modules

included, #module_definition_for, register_module

Methods included from ConfigurationMethods

#configuration, #multi_language?, #multi_site?

Instance Method Details

#showObject

Renders the element view partial

Accepted Formats

  • html

  • js (Tries to replace a given container_id with the elements view partial content via jQuery.)



17
18
19
20
21
22
23
24
25
# File 'app/controllers/alchemy/elements_controller.rb', line 17

def show
  @page = @element.page
  @options = params[:options]

  respond_to do |format|
    format.html
    format.js { @container_id = params[:container_id] }
  end
end