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 AbilityHelper

#current_ability

Methods included from ConfigurationMethods

#configuration, #multi_language?, #multi_site?, #prefix_locale?

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.)



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

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

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