Sha256: 58d150edbba3b594e2728cbfae2cef8a968eabbd38a94bda071738588af16488
Contents?: true
Size: 569 Bytes
Versions: 27
Compression:
Stored size: 569 Bytes
Contents
class RenderSpecController < ApplicationController set_view_path File.join(File.dirname(__FILE__), "..", "views") def some_action respond_to do |format| format.html format.js end end def action_which_renders_template_from_other_controller render :template => 'controller_spec/action_with_template' end def text_action render :text => "this is the text for this action" end def action_with_partial render :partial => "a_partial" end def action_that_renders_nothing render :nothing => true end end
Version data entries
27 entries across 27 versions & 5 rubygems