Good afternoon. It''s possible to have a controller in a sub-directory inside the controllers directory? Something like the following: (directory)controller (directory)messages (controller)MessageController I''ve tried to do this but without success. Thanks for your help. Best regards, Hugo
Try putting it in a messages module: class Messages::MessageController < ActiveController::Base On 5/5/05, Hugo Magalhaes <hugo.mag-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Good afternoon. > It''s possible to have a controller in a sub-directory inside the > controllers directory? > Something like the following: > > (directory)controller > (directory)messages > (controller)MessageController > > I''ve tried to do this but without success. > > Thanks for your help. > Best regards, > Hugo > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- rick http://techno-weenie.net
On 5/5/05, Rick Olson <technoweenie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Try putting it in a messages module: > > class Messages::MessageController < ActiveController::Base > > On 5/5/05, Hugo Magalhaes <hugo.mag-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Good afternoon. > > It''s possible to have a controller in a sub-directory inside the > > controllers directory? > > Something like the following: > > > > (directory)controller > > (directory)messages > > (controller)MessageController > > > > I''ve tried to do this but without success. > > > > Thanks for your help. > > Best regards, > > Hugo > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > -- > rick > http://techno-weenie.net > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >particularly, if using the generate script, you can do this with: script/generate controller ''messages/message'' Jason
Thanks for the quick answers. Taht resolved my problem. Best regards, Hugo On 5/5/05, Jason Foreman <threeve.org-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 5/5/05, Rick Olson <technoweenie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Try putting it in a messages module: > > > > class Messages::MessageController < ActiveController::Base > > > > On 5/5/05, Hugo Magalhaes <hugo.mag-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Good afternoon. > > > It''s possible to have a controller in a sub-directory inside the > > > controllers directory? > > > Something like the following: > > > > > > (directory)controller > > > (directory)messages > > > (controller)MessageController > > > > > > I''ve tried to do this but without success. > > > > > > Thanks for your help. > > > Best regards, > > > Hugo > > > _______________________________________________ > > > Rails mailing list > > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > -- > > rick > > http://techno-weenie.net > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > particularly, if using the generate script, you can do this with: > script/generate controller ''messages/message'' > > Jason > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >