Class: Alchemy::ElementsController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- Alchemy::ElementsController
- Defined in:
- app/controllers/alchemy/elements_controller.rb
Instance Method Summary collapse
-
#show ⇒ Object
Renders the element view partial.
Methods included from Modules
included, #module_definition_for, register_module
Methods included from AbilityHelper
Methods included from ConfigurationMethods
#configuration, #multi_language?, #multi_site?, #prefix_locale?
Instance Method Details
#show ⇒ Object
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 |