I seem to have come to a strange problem getting started on rails. I had everything working in a virtual machine and then set up a seperate machine just for rails developement. It now seems something is broken a little. ruby 1.8.2, rails 0.10.1, postgres, using webrick: i created a table "users", then "generate scaffold User" view localhost/users works fine, shows the listing (empty) with the columns, and a "New user" link. New user page (localhost/users/new) has a route issue (havent modified the default routes file): Routing Error No route for path: "new" Failure reasons: <ActionController::Routing::Route ":controller/service.wsdl" when {:action=>"wsdl"}> failed because no controller found at subpath new <ActionController::Routing::Route ":controller/:action/:id" || {:id=>nil, :action=>"index"}> failed because no controller found at subpath new Then I try: localhost/users?action=new and that IS working. Im guessing there is a simple modification I need to make to routes, just not sure what it is. My current routes file is (default): map.connect '':controller/service.wsdl'', :action => ''wsdl'' map.connect '':controller/:action/:id'' If anyone has any suggestions I would appreicate it. I am excited to get my first rails app underway. Joe Noon
On Sat, 19 Mar 2005 00:44:03 -0800, Joe Noon <joey-ZEVs864fXHyI0AUCcRWsNg@public.gmane.org> wrote:> No route for path: "new" > > Failure reasons: > <ActionController::Routing::Route ":controller/service.wsdl" when > {:action=>"wsdl"}> failed because no controller found at subpath new > <ActionController::Routing::Route ":controller/:action/:id" || > {:id=>nil, :action=>"index"}> failed because no controller found at > subpath newJust a hunch, but do you have a directory named "users" inside your "public" directory? I''ve found that having directories in public/ with the same name as rails controllers tends to confuse rails a bit. -- One Guy With A Camera http://rbpark.ath.cx
Nope, nothing other than the default in public/. Thanks for saving me my next problem down the road though. It is seeming more and more to me that this is an isolated issue somehow having to do with my exact installation. I will probably end up wiping out ruby and rails and obtain them again from a clean system. I will wait a day or so in case any more possibilities roll in first. If it means anything, im on Ubuntu warty.>Just a hunch, but do you have a directory named "users" inside your >"public" directory? I''ve found that having directories in public/ with >the same name as rails controllers tends to confuse rails a bit. > > >