Hi, I just upgraded to rails 0.10.1, and all of my controllers that end in a number no longer work. Is this by design or is it a mistake? Is there a patch? Also, I had my app residing in a subdirectory, like this http://localhost/subdir/controller/action but that no longer works under 0.10.1 either. I get "routes" errors, and the routes documentation is incomplete. For now I''ve put it back in the root so I can work on it, but it needs to be in a subdir. Any suggestions? -Lee -- Naxos Technology
On Sunday 13 March 2005 12:37, LN wrote:> Hi, I just upgraded to rails 0.10.1, and all of my controllers that end inWhich version of Rails did you upgrade from? If less than 0.10, please see the 0.10 upgrade documents: http://manuals.rubyonrails.com/read/book/15 If this is the case, you will probably have to add ModuleName::NameController to all your nested controllers. For example, $ ./script/generate controller admin/user $ head -n 1 app/controllers/admin/user_controller.rb class Admin::UserController < ActionController::Base -- Nicholas Seckar aka. Ulysses
Thanks for the link, I am reading it now. But I think I was unclear about the subdir issue. I have a webserver with static content and several web-apps in various languanges installed in subdirectories. I want to add a rails app to the mix. So I put a symlink in my htdocs directory that points to the public folder of the rails directory structure - this works under 9.x but not under 10.1, where I get "routes" errors about their being no route for the path with prepended subdir name. I am continuing to study that link you sent. -Lee On Sun, 13 Mar 2005 13:02:45 -0500, Nicholas Seckar wrote> On Sunday 13 March 2005 12:37, LN wrote: > > Hi, I just upgraded to rails 0.10.1, and all of my controllers that end in > Which version of Rails did you upgrade from? If less than 0.10, > please see the > 0.10 upgrade documents: http://manuals.rubyonrails.com/read/book/15 > > If this is the case, you will probably have to add > ModuleName::NameController to all your nested controllers. For > example, > > $ ./script/generate controller admin/user > $ head -n 1 app/controllers/admin/user_controller.rb > class Admin::UserController < ActionController::Base > > -- > > Nicholas Seckar aka. Ulysses > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-- Naxos Technology
Julian ''Julik'' Tarkhanov
2005-Mar-13 20:16 UTC
Re: 0.10.1 Bugs Controller Name and App In Subdir
Same here (htdocs as symlik to public) but it works OK for me (OS X, Rails 10.0). Need to check with 10.01 (but I think this has to do with sometimes overcomplicated way Rails generates paths to itself). On 13-mrt-05, at 19:35, LN wrote:> > Thanks for the link, I am reading it now. But I think I was > unclear about the subdir issue. > > I have a webserver with static content and several web-apps > in various languanges installed in subdirectories. I want to > add a rails app to the mix. > > So I put a symlink in my htdocs directory that points to the > public folder of the rails directory structure - this works under > 9.x but not under 10.1, where I get "routes" errors about their > being no route for the path with prepended subdir name. > > I am continuing to study that link you sent. > > -Lee--Julian "Julik" Tarkhanov