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 S.
[email protected]
267.334.6833
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
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.
[email protected]
itsdEx.com
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 [email protected] wrote:
map.connect ‘products/:id’, :controller => ‘catalog’, :action =>
– just remember to delete public/index.html.
end
Posted via http://www.ruby-forum.com/.
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
–
Randy S.
[email protected]
267.334.6833
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 [email protected] 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
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
–
Randy S.
[email protected]
267.334.6833
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
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. [email protected] wrote:
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
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
–
Randy S.
[email protected]
267.334.6833
Yep, the best approach is to assume a strictly case sensitive
environment. Lowercase is the usual standard.