| Module | Cell::ActionController |
| In: |
lib/rails_extensions.rb
|
These ControllerMethods are automatically added to all Controllers when the cells plugin is loaded.
Equivalent to ActionController#render_to_string, except it renders a cell rather than a regular templates.
# File lib/rails_extensions.rb, line 42
42: def render_cell_to_string(name, state, opts={})
43: cell = Cell::Base.create_cell_for(self, name, opts)
44:
45: return cell.render_state(state)
46: end