# Route Skips Call to Method

**URL:** <https://www.ruby-forum.com/t/route-skips-call-to-method/177423>\
**Category:** Rails\
**Created:** [October 16, 2009, 10:06pm UTC](https://www.ruby-forum.com/t/route-skips-call-to-method/177423 "2009-10-16T22:06:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mperham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e47c2d/32.png) [@mperham](https://www.ruby-forum.com/u/mperham)\
**Post date:** [October 16, 2009, 10:06pm UTC](https://www.ruby-forum.com/t/route-skips-call-to-method/177423/1 "2009-10-16T22:06:34Z")

</div>

The following route:

map.connect ‘/adjust’, :controller =\> ‘inventory’, :action =\> ‘adjust’

is failing to call the ‘adjust’ method in ‘inventory\_controller.rb’,  
demonstrated by the first line of the method, a puts statement, never  
outputting to the console. The console shows the route being found, and  
the corresponding adjust.rjs file is getting called, but none of the  
variables that would have been set in the ‘adjust’ method exist, so  
errors are thrown there.

I’ve renamed everything a couple time to make sure I don’t have any  
magic names causing problems and to make sure I don’t have routing  
conflicts, but nothing seems to help.

Any ideas?

MikeP

---

<div class="post-metadata">

**Author:** ![mperham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e47c2d/32.png) [@mperham](https://www.ruby-forum.com/u/mperham)\
**Post date:** [October 16, 2009, 10:34pm UTC](https://www.ruby-forum.com/t/route-skips-call-to-method/177423/2 "2009-10-16T22:34:11Z")

</div>

2009/10/16 Mike P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> errors are thrown there.
> 
> I’ve renamed everything a couple time to make sure I don’t have any  
> magic names causing problems and to make sure I don’t have routing  
> conflicts, but nothing seems to help.

What does the log say? (log/development.log).

Colin
