instance method template_exists?

Ruby on Rails 2.2.3

Last seen in v2.2.3 Private — implementation detail, not part of the public API

Signature

template_exists?(template_name = default_template_name)

No documentation comment.

Parameters

template_name opt = default_template_name
Source
# File actionpack/lib/action_controller/base.rb, line 1315
      def template_exists?(template_name = default_template_name)
        @template.send(:_pick_template, template_name) ? true : false
      rescue ActionView::MissingTemplate
        false
      end

Defined in actionpack/lib/action_controller/base.rb line 1315 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Base

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close