Forum: Ruby on Rails Is this a Bug?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
307bebc42bf3958cf0e6f8166a84bfd7?d=identicon&s=25 bin.liu (Guest)
on 2006-03-20 08:46
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?
This topic is locked and can not be replied to.