class method self.hide_action

Ruby on Rails 2.3.18

Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

self.hide_action(*names)

Hide each of the given methods from being callable as actions.

Parameters

names rest
Source
# File actionpack/lib/action_controller/base.rb, line 417
      def hide_action(*names)
        write_inheritable_attribute(:hidden_actions, hidden_actions | names.map { |name| name.to_s })
      end

Defined in actionpack/lib/action_controller/base.rb line 417 · 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