class RenderFile::BasicController
Public Instance Methods
index()
click to toggle source
# File actionpack/test/controller/new_base/render_file_test.rb, line 9 def index render file: File.expand_path("../../fixtures/test/hello_world", __dir__) end
pathname()
click to toggle source
# File actionpack/test/controller/new_base/render_file_test.rb, line 28 def pathname @secret = "in the sauce" render file: Pathname.new(__dir__).join(*%w[.. .. fixtures test dot.directory render_file_with_ivar]) end
relative_path()
click to toggle source
# File actionpack/test/controller/new_base/render_file_test.rb, line 18 def relative_path @secret = "in the sauce" render file: "../../fixtures/test/render_file_with_ivar" end
relative_path_with_dot()
click to toggle source
# File actionpack/test/controller/new_base/render_file_test.rb, line 23 def relative_path_with_dot @secret = "in the sauce" render file: "../../fixtures/test/dot.directory/render_file_with_ivar" end
with_instance_variables()
click to toggle source
# File actionpack/test/controller/new_base/render_file_test.rb, line 13 def with_instance_variables @secret = "in the sauce" render file: File.expand_path("../../fixtures/test/render_file_with_ivar", __dir__) end
with_locals()
click to toggle source
# File actionpack/test/controller/new_base/render_file_test.rb, line 33 def with_locals path = File.expand_path("../../fixtures/test/render_file_with_locals", __dir__) render file: path, locals: { secret: "in the sauce" } end