Helpers related to template lookup using the lookup context information.
Methods
- D
- E
- F
- T
- V
- W
Attributes
[R] | view_paths |
Instance Public methods
This method is also aliased as
template_exists?
This method is also aliased as
find_template
Alias for find
Alias for exists?
Whenever setting view paths, makes a copy so we can manipulate then in instance objects as we wish.
Add fallbacks to the view paths. Useful in cases you are rendering a :file.
# File actionpack/lib/action_view/lookup_context.rb, line 124 124: def with_fallbacks 125: added_resolvers = 0 126: self.class.fallbacks.each do |resolver| 127: next if view_paths.include?(resolver) 128: view_paths.push(resolver) 129: added_resolvers += 1 130: end 131: yield 132: ensure 133: added_resolvers.times { view_paths.pop } 134: end
Instance Protected methods
Compute details hash and key according to user options (e.g. passed from render).