# Method used yet not defined anywhere?!

**URL:** <https://www.ruby-forum.com/t/method-used-yet-not-defined-anywhere/195748>\
**Category:** Rails\
**Created:** [September 29, 2010, 1:47pm UTC](https://www.ruby-forum.com/t/method-used-yet-not-defined-anywhere/195748 "2010-09-29T13:47:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![trulyruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f475e1/32.png) [@trulyruby](https://www.ruby-forum.com/u/trulyruby)\
**Post date:** [September 29, 2010, 1:47pm UTC](https://www.ruby-forum.com/t/method-used-yet-not-defined-anywhere/195748/1 "2010-09-29T13:47:54Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![trulyruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f475e1/32.png) [@trulyruby](https://www.ruby-forum.com/u/trulyruby)\
**Post date:** [September 29, 2010, 2:40pm UTC](https://www.ruby-forum.com/t/method-used-yet-not-defined-anywhere/195748/2 "2010-09-29T14:40:07Z")

</div>

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:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://www.schuerig.de/michael/](http://www.schuerig.de/michael/)

---

<div class="post-metadata">

**Author:** ![trulyruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f475e1/32.png) [@trulyruby](https://www.ruby-forum.com/u/trulyruby)\
**Post date:** [September 29, 2010, 3:51pm UTC](https://www.ruby-forum.com/t/method-used-yet-not-defined-anywhere/195748/3 "2010-09-29T15:51:56Z")

</div>

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:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Michael Schürig | Sentenced to making sense](http://www.schuerig.de/michael/)

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