Methods
- C
- F
- M
- N
- P
- R
- S
Included Modules
- ActionView START:includes
Attributes
| [RW] | filename | |
| [RW] | load_path | |
| [RW] | base_path | |
| [RW] | name | |
| [RW] | format | |
| [RW] | extension |
Class Public methods
# File actionpack/lib/action_view/template.rb, line 12 12: def initialize(template_path, load_paths = []) 13: template_path = template_path.dup 14: @base_path, @name, @format, @extension = split(template_path) 15: @base_path.to_s.gsub!(/\/$/, '') # Push to split method 16: @load_path, @filename = find_full_path(template_path, load_paths) 17: 18: # Extend with partial super powers 19: extend RenderablePartial if @name =~ /^_/ 20: end
Instance Public methods
# File actionpack/lib/action_view/template.rb, line 72 72: def render_template(view, local_assigns = {}) 73: render(view, local_assigns) 74: rescue Exception => e 75: raise e unless filename 76: if TemplateError === e 77: e.sub_template_of(self) 78: raise e 79: else 80: raise TemplateError.new(self, view.assigns, e) 81: end 82: end