Topic: template_exists? deprecated in edge rails?

in rails 2.3 template_exists? seems to be deprecated.

Anybody knows how to build a proper subsitute for this or have a better solution for dealing with a static_controller?

Re: template_exists? deprecated in edge rails?

I've already solved the problem by myself.

In add the following in my static_controller.rb

private
# Define template_exists? for Rails 2.3 (cause it's deprecated)
unless ActionController::Base.private_instance_methods.include? 'template_exists?'
  def template_exists?(path)
    self.view_paths.find_template(path, response.template.template_format)
  rescue ActionView::MissingTemplate
    false
  end
end

My static_controller in general was built like this:
serving-static-content-with-rails

Regards