I did. But it works without error Lower method works and upper method idle. Name of two methods are same ^^ is this a bug? --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Russell Norris
2007-Mar-18 18:52 UTC
Re: Has anybody stored two same methods in a controller class?
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 On 3/18/07, MrKiss <mrkiss89-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > I did. > > But it works without error > > Lower method works and upper method idle. Name of two methods are same > ^^ > > is this a bug? > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---