rails version 1.0
the same code
render :file=>â?/spec/comment_listâ?
work will in a .rhtml file
while i put it in controller ,it will produce nothing to client browser.
it must use options[:use_full_path] to work fine in controller code.
after read some rails source code ,i think the reason is below:
file action_controller/base.rb line 602
if file = options[:file]
render_file(file, options[:status], options[:use_full_path],
options[:locals] || {})
while action_view/base.rb has these code at line 223
options[:use_full_path] = options[:use_full_path].nil? ? true :
options[:use_full_path]
is this a bug ? or designed to it?