Environment: Windows XP and Rails 2.3.2
I installed plugin selenium on rails. but it doesn't work.
Because render :file=>absolute_path doesn't work in
rails 2.3.2 of Windows.
example
class BlogsController < ApplicationController def
index
@blogs = Blog.all
respond_to do |format|
format.html {
render :file => "D:/testapp/app/views/blogs/index.html.erb"}
format.xml { render :xml => @blogs }
end
end end
access result
Invalid argument - ./D:/testapp/app/views/blogs/index.html.erb
d:/Program
Files/ruby-1.8/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/template.rb:185:in
read'
I think find_template is something wrong. Below code is only
considerd unix like system.
actionpack-2.3.2\lib\action_view:64
return Template.new(original_template_path, original_template_path =~ /\A\// ? "" : ".") if File.file?(original_template_path)
actionpack-2.3.2\lib\action_view:112
@load_path, @filename = load_path, File.join(load_path,
template_path)