# Problem with routes when I move the app to a different machi

**URL:** <https://www.ruby-forum.com/t/problem-with-routes-when-i-move-the-app-to-a-different-machi/100728>\
**Category:** Rails\
**Created:** [July 31, 2006, 7:21pm UTC](https://www.ruby-forum.com/t/problem-with-routes-when-i-move-the-app-to-a-different-machi/100728 "2006-07-31T19:21:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![randy\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@randy\_s](https://www.ruby-forum.com/u/randy_s)\
**Post date:** [July 31, 2006, 7:21pm UTC](https://www.ruby-forum.com/t/problem-with-routes-when-i-move-the-app-to-a-different-machi/100728/1 "2006-07-31T19:21:00Z")

</div>

Hi all:

I have an application that runs great on my macbook pro, however, when  
I move the app to the production linux box, all routes fail except for  
the one I set up as the default:

map.connect ‘:controller/:action/:id’, :controller =\> “Employee”,  
:action =\> “status”

I made sure the shebang line in dispatch.\* was set to be OS  
independent (#!/usr/bin/env ruby) to see if that worked, but it  
didn’t.

If you want to view the source, I opened up the repository for viewing:

[http://svn.r38y.com/TimeOut/](http://svn.r38y.com/TimeOut/)

I’ve never had this problem before so I am kind of stuck. Any help  
would be greatly appreciated!

## Thanks!

Randy S.  
removed\_email\_address@domain.invalid  
267.334.6833

---

<div class="post-metadata">

**Author:** ![randy\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@randy\_s](https://www.ruby-forum.com/u/randy_s)\
**Post date:** [July 31, 2006, 7:47pm UTC](https://www.ruby-forum.com/t/problem-with-routes-when-i-move-the-app-to-a-different-machi/100728/2 "2006-07-31T19:47:44Z")

</div>

Randy S. wrote:

> Hi all:
> 
> I have an application that runs great on my macbook pro, however, when  
> I move the app to the production linux box, all routes fail except for  
> the one I set up as the default:
> 
> map.connect ‘:controller/:action/:id’, :controller =\> “Employee”,  
> :action =\> “status”

Um, that is the _only_ route you defined  
[http://svn.r38y.com/TimeOut/config/routes.rb](http://svn.r38y.com/TimeOut/config/routes.rb)

---

<div class="post-metadata">

**Author:** ![randy\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@randy\_s](https://www.ruby-forum.com/u/randy_s)\
**Post date:** [July 31, 2006, 7:58pm UTC](https://www.ruby-forum.com/t/problem-with-routes-when-i-move-the-app-to-a-different-machi/100728/3 "2006-07-31T19:58:49Z")

</div>

[http://svn.r38y.com/TimeOut/config/routes.rb](http://svn.r38y.com/TimeOut/config/routes.rb)

contains the following as far as i can tell…

################################################################  
ActionController::Routing::Routes.draw do |map|

# The priority is based upon order of creation: first created →

highest priority.

# Sample of regular route:

# map.connect ‘products/:id’, :controller =\> ‘catalog’, :action =\>

‘view’

# Keep in mind you can assign values other than :controller and

:action

# Sample of named route:

# map.purchase ‘products/:id/purchase’, :controller =\> ‘catalog’,

:action =\> ‘purchase’

# This route can be invoked with purchase\_url(:id =\> product.id)

# You can have the root of your site routed by hooking up ‘’

# – just remember to delete public/index.html.

# map.connect ‘’, :controller =\> “welcome”

# Allow downloading Web Service WSDL as a file with an extension

# instead of a file named ‘wsdl’

map.connect ‘:controller/service.wsdl’, :action =\> ‘wsdl’

# Install the default route as the lowest priority.

map.connect ‘:controller/:action/:id’, :controller =\> “Employee”,  
:action =\> “status”

end  
#################################################################

I’m sure this lies at the heart of your problem :]

Ciao man!

Gustav P.  
removed\_email\_address@domain.invalid  
[itsdEx.com](http://itsdEx.com)

---

<div class="post-metadata">

**Author:** ![randy\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@randy\_s](https://www.ruby-forum.com/u/randy_s)\
**Post date:** [July 31, 2006, 8:10pm UTC](https://www.ruby-forum.com/t/problem-with-routes-when-i-move-the-app-to-a-different-machi/100728/4 "2006-07-31T20:10:50Z")

</div>

I guess I don’t understand what you are pointing out. Are you pointing  
out that the lines wrap? They don’t wrap in the actual routes file.  
Everything I don’t need for my routes is commented out. Can you  
explain further?

Thanks!  
Randy

On 7/31/06, gustav Paul [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> # map.connect ‘products/:id’, :controller =\> ‘catalog’, :action =\>
> 
> # – just remember to delete public/index.html.
> 
> ## end
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–  
Randy S.  
removed\_email\_address@domain.invalid  
267.334.6833

---

<div class="post-metadata">

**Author:** ![randy\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@randy\_s](https://www.ruby-forum.com/u/randy_s)\
**Post date:** [August 1, 2006, 2:58pm UTC](https://www.ruby-forum.com/t/problem-with-routes-when-i-move-the-app-to-a-different-machi/100728/5 "2006-08-01T14:58:01Z")

</div>

That worked! Thanks so much! I thought my email got burried in the  
flood of emails flying through here.

So do I just make all url’s lowercase so it will work on all machines?  
I want to open source this little app so I want to do my best to make  
sure it will work on every machine.

Thanks again!  
Randy

On 8/1/06, Scott Fortmann-Roe [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > I have an application that runs great on my macbook pro, however, when  
> > If you want to view the source, I opened up the repository for viewing:  
> > 267.334.6833
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–  
Randy S.  
removed\_email\_address@domain.invalid  
267.334.6833

---

<div class="post-metadata">

**Author:** ![randy\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@randy\_s](https://www.ruby-forum.com/u/randy_s)\
**Post date:** [August 1, 2006, 6:44am UTC](https://www.ruby-forum.com/t/problem-with-routes-when-i-move-the-app-to-a-different-machi/100728/6 "2006-08-01T06:44:17Z")

</div>

Haven’t checked the source, but it could be a case sensitivity issue.

Linux is usually case sensititve, your mac probably isn’t. Try playing  
around with your cases.

-Scott

---

<div class="post-metadata">

**Author:** ![randy\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@randy\_s](https://www.ruby-forum.com/u/randy_s)\
**Post date:** [July 31, 2006, 9:01pm UTC](https://www.ruby-forum.com/t/problem-with-routes-when-i-move-the-app-to-a-different-machi/100728/7 "2006-07-31T21:01:56Z")

</div>

So there are two…but that is how I have set up every other app…and  
I haven’t had this issue before. All I did was add “, :controller =\>  
“Employee”, :action =\> “status”” to the default route…

Does what you sent help me in any way? Or are you just pointing  
somethingout? Just in case it was meant to help me out, I removed  
everything except

ActionController::Routing::Routes.draw do |map|  
map.connect ‘:controller/:action/:id’, :controller =\> “Employee”,  
:action =\> “status”  
end

and it still didn’t work…

Thanks!  
Randy

On 7/31/06, Alex W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Um, that is the _only_ route you defined  
> [http://svn.r38y.com/TimeOut/config/routes.rb](http://svn.r38y.com/TimeOut/config/routes.rb)
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–  
Randy S.  
removed\_email\_address@domain.invalid  
267.334.6833

---

<div class="post-metadata">

**Author:** ![randy\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@randy\_s](https://www.ruby-forum.com/u/randy_s)\
**Post date:** [August 1, 2006, 5:53pm UTC](https://www.ruby-forum.com/t/problem-with-routes-when-i-move-the-app-to-a-different-machi/100728/8 "2006-08-01T17:53:14Z")

</div>

Yep, the best approach is to assume a strictly case sensitive  
environment. Lowercase is the usual standard.
