public Method

Base.full_template_path(template_path, extension)

Gets the full template path with base path for the given template_path and extension.

full_template_path('users/show', 'html.erb')
# => '~/rails/app/views/users/show.html.erb

Source Code

# File action_view/base.rb, line 378
def full_template_path(template_path, extension)
  if @@cache_template_extensions
    (@@cached_base_paths[template_path] ||= {})[extension.to_s] ||= find_full_template_path(template_path, extension)
  else
    find_full_template_path(template_path, extension)
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.