I reasoned that placing an action in the application controller would
be roughly equivalent to placing that action in each of the other
controllers since each of the other controllers inherits from the
application controller. It turns out that that doesn’t work. It
behaves as if the action is missing from the other controllers. I
thinking that, for whatever reason, when Rails looks for an action it
only looks at the controller and doesn’t look up the chain. If the
action isn’t there, it behaves accordingly. Can anyone tell me why
that is and what I should do about it if I want the action in the
application controller to be available in several other controllers?
Thanks for any input.