Randy Schmidt
2006-Jul-31 17:19 UTC
[Rails] Problem with routes when I move the app to a different machine
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/ I''ve never had this problem before so I am kind of stuck. Any help would be greatly appreciated! Thanks! -- Randy Schmidt x@altorg.com 267.334.6833
Alex Wayne
2006-Jul-31 17:48 UTC
[Rails] Re: Problem with routes when I move the app to a different m
Randy Schmidt 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 -- Posted via http://www.ruby-forum.com/.
gustav Paul
2006-Jul-31 17:59 UTC
[Rails] Re: Problem with routes when I move the app to a different m
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 Paul gustav@rails.co.za itsdEx.com -- Posted via http://www.ruby-forum.com/.
Randy Schmidt
2006-Jul-31 18:08 UTC
[Rails] Re: Problem with routes when I move the app to a different m
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 <gustav@rails.co.za> wrote:> 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 Paul > gustav@rails.co.za > itsdEx.com > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Randy Schmidt x@altorg.com 267.334.6833
Randy Schmidt
2006-Jul-31 18:59 UTC
[Rails] Re: Problem with routes when I move the app to a different m
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 Wayne <rubyonrails@beautifulpixel.com> wrote:> Randy Schmidt 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 > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Randy Schmidt x@altorg.com 267.334.6833
Scott Fortmann-Roe
2006-Aug-01 04:42 UTC
[Rails] Problem with routes when I move the app to a different machine
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 On 7/31/06, Randy Schmidt <x@altorg.com> 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" > > 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/ > > I''ve never had this problem before so I am kind of stuck. Any help > would be greatly appreciated! > > Thanks! > -- > Randy Schmidt > x@altorg.com > 267.334.6833 > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Easily help charity when you shop: www.GiveTeam.org I''m a member of the Give Team, are you?
Randy Schmidt
2006-Aug-01 12:56 UTC
[Rails] Problem with routes when I move the app to a different machine
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 <scottfr@gmail.com> wrote:> 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 > > On 7/31/06, Randy Schmidt <x@altorg.com> 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" > > > > 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/ > > > > I''ve never had this problem before so I am kind of stuck. Any help > > would be greatly appreciated! > > > > Thanks! > > -- > > Randy Schmidt > > x@altorg.com > > 267.334.6833 > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > Easily help charity when you shop: www.GiveTeam.org > I''m a member of the Give Team, are you? > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Randy Schmidt x@altorg.com 267.334.6833
Scott Fortmann-Roe
2006-Aug-01 15:50 UTC
[Rails] Problem with routes when I move the app to a different machine
Yep, the best approach is to assume a strictly case sensitive environment. Lowercase is the usual standard. On 8/1/06, Randy Schmidt <x@altorg.com> wrote:> 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 <scottfr@gmail.com> wrote: > > 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 > > > > On 7/31/06, Randy Schmidt <x@altorg.com> 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" > > > > > > 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/ > > > > > > I''ve never had this problem before so I am kind of stuck. Any help > > > would be greatly appreciated! > > > > > > Thanks! > > > -- > > > Randy Schmidt > > > x@altorg.com > > > 267.334.6833 > > > _______________________________________________ > > > Rails mailing list > > > Rails@lists.rubyonrails.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > -- > > Easily help charity when you shop: www.GiveTeam.org > > I''m a member of the Give Team, are you? > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > Randy Schmidt > x@altorg.com > 267.334.6833 > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Easily help charity when you shop: www.GiveTeam.org I''m a member of the Give Team, are you?