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.
... doug
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---