class method
self.new
Ruby on Rails 2.3.18
Since v2.2.3Signature
self.new(template_path, load_path = nil)
No documentation comment.
Parameters
-
template_pathreq -
load_pathopt = nil
Source
# File actionpack/lib/action_view/template.rb, line 116
def initialize(template_path, load_path = nil)
@template_path, @load_path = template_path.dup, load_path
@base_path, @name, @locale, @format, @extension = split(template_path)
@base_path.to_s.gsub!(/\/$/, '') # Push to split method
# Extend with partial super powers
extend RenderablePartial if @name =~ /^_/
end
Defined in actionpack/lib/action_view/template.rb line 116
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Template