# Odd behavior with routes

**URL:** <https://www.ruby-forum.com/t/odd-behavior-with-routes/107868>\
**Category:** Rails\
**Created:** [June 27, 2007, 12:21am UTC](https://www.ruby-forum.com/t/odd-behavior-with-routes/107868 "2007-06-27T00:21:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fmardini](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e19adc/32.png) [@fmardini](https://www.ruby-forum.com/u/fmardini)\
**Post date:** [June 27, 2007, 12:21am UTC](https://www.ruby-forum.com/t/odd-behavior-with-routes/107868/1 "2007-06-27T00:21:44Z")

</div>

hi,

I have been working with rails 6887 for a while now, and today i  
decided to try things out with the latest and greatest, but things did  
not go so well.

user\_connections\_path(1) works correctly when i run the app (and in  
the console with app.user\_connections\_path(1)), but test are failing  
(throwing a RoutingError exception) when i run the tests.  
After some investigation, the generate method in action\_controller/  
routing.rb is being called with :action =\> destroy when testing, but  
with :action =\> index in app/console

any pointers would be really appreciated  
thanks

-fouad
