I posted something about this yesterday, and got some good responses but it seems that the variable @request[''controller''] isn''t being passed in to the page or isn''t being read. Has the naming convention for these variables changed. it worked great in all rails versions up to 0.9.5 with fcgi, but is not working in rails 0.10.0 with fcgi. I am currently just trying to get it to print the value like this <%@request[''controller''] %> any help is appreciated, Beau _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
I think you mean @params[''controller'']. However a much better idea is to use controller.controller_name from your view/helper On Tue, 1 Mar 2005 09:20:56 -0600, Beau O''Hara <bohara-Ani+Op4kYNUXWzRTk0ed69BPR1lH4CV8@public.gmane.org> wrote:> > I posted something about this yesterday, and got some good responses but it > seems that the variable @request[''controller''] isn''t being passed in to the > page or isn''t being read. Has the naming convention for these variables > changed. it worked great in all rails versions up to 0.9.5 with fcgi, but > is not working in rails 0.10.0 with fcgi. I am currently just trying to get > it to print the value like this <%= @request[''controller''] %> > > any help is appreciated, > Beau > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- Tobi http://www.snowdevil.ca - Snowboards that don''t suck http://www.hieraki.org - Open source book authoring http://blog.leetsoft.com - Technical weblog
Both of those worked perfectly. Thanks Beau -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Tobias Luetke Sent: Tuesday, March 01, 2005 9:25 AM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] @request cycle variables I think you mean @params[''controller'']. However a much better idea is to use controller.controller_name from your view/helper On Tue, 1 Mar 2005 09:20:56 -0600, Beau O''Hara <bohara-Ani+Op4kYNUXWzRTk0ed69BPR1lH4CV8@public.gmane.org> wrote:> > I posted something about this yesterday, and got some good responses > but it seems that the variable @request[''controller''] isn''t being > passed in to the page or isn''t being read. Has the naming convention > for these variables changed. it worked great in all rails versions up> to 0.9.5 with fcgi, but is not working in rails 0.10.0 with fcgi. I > am currently just trying to get it to print the value like this <%= > @request[''controller''] %> > > any help is appreciated, > Beau > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- Tobi http://www.snowdevil.ca - Snowboards that don''t suck http://www.hieraki.org - Open source book authoring http://blog.leetsoft.com - Technical weblog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails