Method used yet not defined anywhere?!

Hi all,

I’m working on an application that I never developed and have come
across a method that does not seem to be defined anywhere yet is working
within the code.
Yet in script console I get an error saying the method cannot be found.

Having ran a search on the whole mac (let alone just the app), the
method is not defined anywhere. So I assume it’s a dynamic method
defined somewhere but it’s far from clear from the current code.

The method in this case is: confirm_user_url

Having search for ‘confirm_’ and many other terms, no luck as of yet
What would be the recommended ways of getting to the bottom of this?

On Wednesday 29 September 2010, Truly Ruby wrote:

The method in this case is: confirm_user_url

Having search for ‘confirm_’ and many other terms, no luck as of yet
What would be the recommended ways of getting to the bottom of this?

Look in config/routes.rb. This method is generated by a named route or
by a resource member route.

Michael


Michael S.
mailto:[email protected]
http://www.schuerig.de/michael/

Michael S. wrote:

On Wednesday 29 September 2010, Truly Ruby wrote:

The method in this case is: confirm_user_url

Having search for ‘confirm_’ and many other terms, no luck as of yet
What would be the recommended ways of getting to the bottom of this?

Look in config/routes.rb. This method is generated by a named route or
by a resource member route.

Michael


Michael S.
mailto:[email protected]
Michael Schürig | Sentenced to making sense

wow - the answer is always so simple.
Thanks loads Michael, you’re exactly right.