Forum: Ruby on Rails Has anybody stored two same methods in a controller class?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
MrKiss (Guest)
on 2007-03-18 20:45
(Received via mailing list)
I did.

But it works without error

Lower method works and upper method idle. Name of two methods are same
^^

is this a bug?
Russell N. (Guest)
on 2007-03-18 20:54
(Received via mailing list)
That's because Ruby allows you to redefine methods on the fly, so that
second definition is viewed as just that. A redefinition. The first is
nullified effectively.

RSL
This topic is locked and can not be replied to.