repo.or.cz
/
monkeycharger.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Upgraded Rails and RSpec
[monkeycharger.git]
/
vendor
/
plugins
/
rspec_on_rails
/
spec_resources
/
controllers
/
render_spec_controller.rb
blob
352ab33c1df4996d71f39c1df73f43883e00012e
1
class 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 text_action
12
render :text => "this is the text for this action"
13
end
14
15
def action_with_partial
16
render :partial => "a_partial"
17
end
18
end