Module: Cell::RailsExtensions::ActionView

Defined in:
lib/cell/rails.rb

Instance Method Summary collapse

Instance Method Details

#cell(name, *args, &block) ⇒ Object

Returns the cell instance for name. You may pass arbitrary options to your cell.

= cell(:song, :title => "Creeping Out Sara").render(:show)

19
20
21
# File 'lib/cell/rails.rb', line 19

def cell(name, *args, &block)
  controller.cell(name, *args, &block)
end

#concept(name, *args, &block) ⇒ Object

# See Cells::Rails::ActionController#render_cell. def render_cell(name, state, *args, &block)

::Cell::Rails.render_cell(name, state, controller, *args, &block)

end


28
29
30
# File 'lib/cell/rails.rb', line 28

def concept(name, *args, &block)
  controller.concept(name, *args, &block)
end