Module: Cells::Rails::ActionView
- Defined in:
- lib/cells/rails.rb
Instance Method Summary collapse
-
#cell_for(name, *args, &block) ⇒ Object
(also: #cell)
Returns the cell instance for
name. - #concept(name, *args, &block) ⇒ Object
-
#render_cell(name, state, *args, &block) ⇒ Object
See Cells::Rails::ActionController#render_cell.
Instance Method Details
#cell_for(name, *args, &block) ⇒ Object Also known as: cell
Returns the cell instance for name. You may pass arbitrary options to your cell.
= cell(:song, :title => "Creeping Out Sara").render(:show)
61 62 63 |
# File 'lib/cells/rails.rb', line 61 def cell_for(name, *args, &block) controller.cell_for(name, *args, &block) end |
#concept(name, *args, &block) ⇒ Object
71 72 73 |
# File 'lib/cells/rails.rb', line 71 def concept(name, *args, &block) controller.concept_for(name, *args, &block) end |