public Method

TemplateFinder.path_and_extension(template_path)

Splits the path and extension from the given template_path and returns as an array.

Source Code

# File action_view/template_finder.rb, line 151
def path_and_extension(template_path)
  template_path_without_extension = template_path.sub(/\.(\w+)$/, '')
  [ template_path_without_extension, $1 ]
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.