Sha256: b9d6c5b071177ee82da2c51aed552dc22dc21df75e15b3f0b4188a89d13cdb56

Contents?: true

Size: 722 Bytes

Versions: 17

Compression:

Stored size: 722 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_redirect
    redirect_to :action => :some_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

17 entries across 17 versions & 6 rubygems

Version Path
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-rails-1.3.4/spec/resources/controllers/render_spec_controller.rb
richzhou-rspec-rails-1.3.4 spec/resources/controllers/render_spec_controller.rb
rspec-rails-1.3.4 spec/resources/controllers/render_spec_controller.rb
rspec-rails-1.3.3 spec/resources/controllers/render_spec_controller.rb
rspec-rails-1.3.3.rc spec/resources/controllers/render_spec_controller.rb
exception2db-0.0.1 test/rspec-rails/spec/resources/controllers/render_spec_controller.rb
rspec-rails-w-factory_girl-1.3.2.1 spec/resources/controllers/render_spec_controller.rb
rspec-rails-w-factory_girl-1.3.2 spec/resources/controllers/render_spec_controller.rb
rspec-rails-1.3.2 spec/resources/controllers/render_spec_controller.rb
rspec-rails-1.3.1 spec/resources/controllers/render_spec_controller.rb
rspec-rails-1.3.0 spec/resources/controllers/render_spec_controller.rb
hubbub-0.0.11 lib/vendor/plugins/rspec-rails/spec/resources/controllers/render_spec_controller.rb
hubbub-0.0.10 lib/vendor/plugins/rspec-rails/spec/resources/controllers/render_spec_controller.rb
hubbub-0.0.9 lib/vendor/plugins/rspec-rails/spec/resources/controllers/render_spec_controller.rb
hubbub-0.0.8 lib/vendor/plugins/rspec-rails/spec/resources/controllers/render_spec_controller.rb
hubbub-0.0.6 lib/vendor/plugins/rspec-rails/spec/resources/controllers/render_spec_controller.rb
rspec-rails-1.2.9 spec/resources/controllers/render_spec_controller.rb