changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec_on_rails/spec_resources/controllers/render_spec_controller.rb

changeset 16: 01fd3f10ae84
author: moriq@moriq.com
date: Mon Mar 10 10:13:18 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec_on_rails
1class RenderSpecController < ApplicationController
2 set_view_path File.join(File.dirname(__FILE__), "..", "views")
3
4 def some_action
5 respond_to do |format|
6 format.html
7 format.js
8 end
9 end
10
11 def action_which_renders_template_from_other_controller
12 render :template => 'controller_spec/action_with_template'
13 end
14
15 def text_action
16 render :text => "this is the text for this action"
17 end
18
19 def action_with_partial
20 render :partial => "a_partial"
21 end
22
23 def action_that_renders_nothing
24 render :nothing => true
25 end
26end