Sha256: aa387434cc78eee77d8fdbd8d77e66b13654b8975777f9ced77ce5b6792fa0c8

Contents?: true

Size: 648 Bytes

Versions: 24

Compression:

Stored size: 648 Bytes

Contents

class RenderSpecController < ApplicationController
  prepend_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
  
  def action_with_alternate_layout
    render :layout => 'simple'
  end
end

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
cavalle-rspec-rails-1.2.2.0.1 spec/resources/controllers/render_spec_controller.rb
cavalle-rspec-rails-1.2.2.0.2 spec/resources/controllers/render_spec_controller.rb
cavalle-rspec-rails-1.2.3.1 spec/resources/controllers/render_spec_controller.rb
cavalle-rspec-rails-1.2.4.0.1 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.99.1 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.99.13 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.99.2 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.99.3 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.99.4 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.99.5 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.99.6 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.99.7 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.99.8 spec/resources/controllers/render_spec_controller.rb
dchelimsky-rspec-rails-1.1.99.9 spec/resources/controllers/render_spec_controller.rb
mcmire-rspec-rails-1.1.99.9 spec/resources/controllers/render_spec_controller.rb
rspec-rails-1.2.7 spec/resources/controllers/render_spec_controller.rb
rspec-rails-1.2.7.1 spec/resources/controllers/render_spec_controller.rb
rspec-rails-1.2.0 spec/resources/controllers/render_spec_controller.rb
rspec-rails-1.2.1 spec/resources/controllers/render_spec_controller.rb
rspec-rails-1.2.5 spec/resources/controllers/render_spec_controller.rb