Methods
Attributes
[R] | view_paths |
Instance Public methods
This method is also aliased as
template_exists?
This method is also aliased as
find_template
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 99 def with_fallbacks added_resolvers = 0 self.class.fallbacks.each do |resolver| next if view_paths.include?(resolver) view_paths.push(resolver) added_resolvers += 1 end yield ensure added_resolvers.times { view_paths.pop } end