lib/action_view/lookup_context.rb
def normalize_name(name, prefixes) #:nodoc:
        name  = name.to_s.gsub(handlers_regexp, '')
        parts = name.split('/')
        name  = parts.pop

        prefixes = if prefixes.blank?
          [parts.join('/')]
        else
          prefixes.map { |prefix| [prefix, *parts].compact.join('/') }
        end

        return name, prefixes
      end
# Support legacy foo.erb names even though we now ignore .erb
# as well as incorrectly putting part of the path in the template
# name instead of the prefix.
Support legacy foo.erb names even though we now ignore .erb
as well as incorrectly putting part of the path in the template
name instead of the prefix.
Support legacy foo . erb names even though we now ignore . erb as well as incorrectly putting part of the path in the template name instead of the prefix .
def normalize_name(name, prefixes) 
        name  = name.to_s.gsub(handlers_regexp, '')
        parts = name.split('/')
        name  = parts.pop
        prefixes = if prefixes.blank?
          [parts.join('/')]
        else
          prefixes.map { |prefix| [prefix, *parts].compact.join('/') }
        end
        return name, prefixes
      end
def normalize_name ( name , prefixes ) name = name . to_s . gsub ( handlers_regexp , '' ) parts = name . split ( '/' ) name = parts . pop prefixes = if prefixes . blank? [ parts . join ( '/' ) ] else prefixes . map { | prefix | [ prefix , * parts ] . compact . join ( '/' ) } end return name , prefixes end
Support legacy foo.erb names even though we now ignore .erb
as well as incorrectly putting part of the path in the template
name instead of the prefix.
Support legacy foo . erb names even though we now ignore . erb as well as incorrectly putting part of the path in the template name instead of the prefix .
#:nodoc:
name
prefixes