Sha256: 6b6dc9fde2f9ea1410624bb67f7f431c51bd1907b82d1f6a86724594b99ec5a9
Contents?: true
Size: 1.06 KB
Versions: 13
Compression:
Stored size: 1.06 KB
Contents
# encoding: utf-8 class CellsTestController < ActionController::Base def rescue_action(e) raise e end def render_cell_state cell = params[:cell] state = params[:state] render :text => render_cell_to_string(cell, state) end def call_render_cell_with_strings static = render_cell_to_string('my_test', 'direct_output') render :text => static end def call_render_cell_with_syms static = render_cell_to_string(:my_test, :direct_output) render :text => static end def call_render_cell_with_state_view render :text => render_cell_to_string(:my_test, :view_with_instance_var) return end def render_view_with_render_cell_invocation render :file => File.join(File.dirname(__FILE__), *%w[.. views view_with_render_cell_invocation.html.erb]) return end def render_just_one_view_cell static = render_cell_to_string('just_one_view', 'some_state') render :text => static end def render_state_with_link_to static = render_cell_to_string('my_test', 'state_with_link_to') render :text => static end end
Version data entries
13 entries across 13 versions & 1 rubygems